Part Number Hot Search : 
S125HN PG1264 RKS1K75E FTD2017M 062K102 1040405 LVB14A ADS12
Product Description
Full Text Search
 

To Download W83627SF Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 W83627SF
W83627SF WINBOND I/O
-1-
Publication Release Date: May 31, 2005 Revision A1
W83627SF
Table of Contents1. 2. 3. 4. GENERAL DESCRIPTION ............................................................................................................ 6 FEATURES .................................................................................................................................... 7 PIN CONFIGURATION FOR W83627SF .................................................................................... 10 PIN DESCRIPTION...................................................................................................................... 11 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 LPC Interface ..................................................................................................................... 11 FDC Interface ..................................................................................................................... 12 Multi-Mode Parallel Port ..................................................................................................... 13 Serial Port Interface............................................................................................................ 18 KBC Interface ..................................................................................................................... 19 ACPI Interface .................................................................................................................... 19 Game Port & MIDI Port ...................................................................................................... 20 General Purpose I/O Port................................................................................................... 21
4.8.1 4.8.2 4.8.3 General Purpose I/O Port 1 (Power source is Vcc) ..............................................................21 General Purpose I/O Port 2 (Power source is Vcc) ..............................................................21 General Purpose I/O Port 3 (Power source is VSB) .............................................................21
4.9
SMART CARD Interface and General Purpose I/O port 7 (Powered by VCC except SCPSNT# which is powered by VSB)................................................................................ 22
4.10 General Purpose I/O Port 4 (Powered by GP4PWR) ........................................................ 23 4.11 General Purpose I/O Port 5, 6 (Powered by VCC) ............................................................ 23 4.12 32KHz crystal oscillator...................................................................................................... 24 4.13 POWER PINS .................................................................................................................... 24 5. SMART CARD INTERFACE........................................................................................................ 25 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 Receiver Buffer Register (RBR, read only at "base address + 0" when BDLAB = 0)....... 25 Transmitter Buffer Register (TBR, write only at "base address + 0" when BDLAB = 0)... 25 Interrupt Control Register (ICR, at "base address + 1" when BDLAB = 0)....................... 25 Interrupt Status Register (ISR, read only at "base address + 2") ..................................... 26 Smart Card FIFO Control Register (SCFR, write only at "base address + 2") ................. 27 Smart Card Control Register (SCCR, write only at "base address + 3") .......................... 27 Interrupt Enable Register (IER, at "base address + 4") .................................................... 28 Smart Card Status Register (SCSR, at "base address + 5") ............................................ 28 Extended Control Register (ECR, at "base address + 7") ................................................ 29
5.10 Baud rate divisor Latch High and Baud rate divisor Latch Low (BHL and BLL at "base address + 1" and "base address + 0" respectively when BDLAB = 1) ............................ 30 6. UART PORT ................................................................................................................................ 31 6.1 6.2 Universal Asynchronous Receiver/Transmitter (UART A, UART B).................................. 31 Register Address................................................................................................................ 31
6.2.1 6.2.2 UART Control Register (UCR) (Read/Write) ........................................................................31 UART Status Register (USR) (Read/Write)..........................................................................34
-2-
W83627SF
6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8 6.2.9 Handshake Control Register (HCR) (Read/Write) ................................................................35 Handshake Status Register (HSR) (Read/Write) .................................................................36 UART FIFO Control Register (UFR) (Write only) .................................................................37 Interrupt Status Register (ISR) (Read only)..........................................................................38 Interrupt Control Register (ICR) (Read/Write) ......................................................................39 Programmable Baud Generator (BLL/BHL) (Read/Write) ....................................................39 User-defined Register (UDR) (Read/Write) ..........................................................................40
7.
CIR RECEIVER PORT................................................................................................................. 41 7.1 CIR Registers ..................................................................................................................... 41
7.1.1 7.1.2 7.1.3 7.1.4 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 Bank0.Reg0 - Receiver Buffer Registers (RBR) (Read).......................................................41 Bank0.Reg1 - Interrupt Control Register (ICR).....................................................................41 Bank0.Reg2 - Interrupt Status Register (ISR) ......................................................................41 Bank0~3.Reg3 - CIR Control Register 0/Bank Select Register (CTR0/BSR) (BANK0~3)....42 Bank0.Reg4 - CIR Control Register (CTR)...........................................................................42 Bank0.Reg5 - UART Line Status Register (USR) ................................................................43 Bank0.Reg6 - Remote Infrared Config Register (RIR_CFG)................................................44 Bank0.Reg7 - User Defined Register (UDR/AUDR) .............................................................45 Bank1.Reg0~1 - Baud Rate Divisor Latch (BLL/BHL) ..........................................................45
7.1.10 Bank1.Reg2 - Version ID Register I (VID) ............................................................................46 7.1.11 Bank0~3.Reg3 - CIR Control Register 0/Bank Select Register (CTR0/BSR) (BANK0~3)....46 7.1.12 Bank1.Reg4 - Timer Low Byte Register (TMRL) ..................................................................46 7.1.13 Bank1.Reg5 - Timer High Byte Register (TMRH).................................................................47
8.
PARALLEL PORT ........................................................................................................................ 47 8.1 8.2 Printer Interface Logic ........................................................................................................ 47 Enhanced Parallel Port (EPP)............................................................................................ 48
8.2.1 8.2.2 8.2.3 8.2.4 8.2.5 8.2.6 8.2.7 8.2.8 Data Swapper ......................................................................................................................49 Printer Status Buffer.............................................................................................................49 Printer Control Latch and Printer Control Swapper ..............................................................49 EPP Address Port ................................................................................................................50 EPP Data Port 0-3................................................................................................................51 Bit Map of Parallel Port and EPP Registers .........................................................................51 EPP Pin Descriptions ...........................................................................................................52 EPP Operation .....................................................................................................................52 ECP Register and Mode Definitions .....................................................................................53 Data and ecpAFifo Port ........................................................................................................54 Device Status Register (DSR)..............................................................................................54 Device Control Register (DCR) ............................................................................................55 cFifo (Parallel Port Data FIFO) Mode = 010.........................................................................56 ecpDFifo (ECP Data FIFO) Mode = 011 ..............................................................................56
8.3
Extended Capabilities Parallel (ECP) Port......................................................................... 53
8.3.1 8.3.2 8.3.3 8.3.4 8.3.5 8.3.6
-3-
Publication Release Date: May 31, 2005 Revision A1
W83627SF
8.3.7 8.3.8 8.3.9 tFifo (Test FIFO Mode) Mode = 110.....................................................................................56 cnfgA (Configuration Register A) Mode = 111......................................................................56 cnfgB (Configuration Register B) Mode = 111......................................................................56
8.3.10 ecr (Extended Control Register) Mode = all .........................................................................57 8.3.11 Bit Map of ECP Port Registers .............................................................................................58 8.3.12 ECP Pin Descriptions ...........................................................................................................59 8.3.13 ECP Operation .....................................................................................................................60 8.3.14 FIFO Operation ....................................................................................................................60 8.3.15 DMA Transfers .....................................................................................................................61 8.3.16 Programmed I/O (NON-DMA) Mode ....................................................................................61
8.4 8.5 9. 9.1 9.2 9.3 9.4 9.5
Extension FDD Mode (EXTFDD) ....................................................................................... 61 Extension 2FDD Mode (EXT2FDD) ................................................................................... 61 Output Buffer ...................................................................................................................... 63 Input Buffer ......................................................................................................................... 63 Status Register................................................................................................................... 63 Commands ......................................................................................................................... 64 HARDWARE GATEA20/KEYBOARD RESET CONTROL LOGIC.................................... 66
9.5.1 9.5.2 KB Control Register (Logic Device 5, CR-F0) ......................................................................66 Port 92 Control Register (Default Value = 0x24) ..................................................................66
KEYBOARD CONTROLLER ....................................................................................................... 62
10. 11.
GENERAL PURPOSE I/O ........................................................................................................... 67 PLUG AND PLAY CONFIGURATION ......................................................................................... 69 11.1 Compatible PnP ................................................................................................................. 70
11.1.1 Extended Function Registers ...............................................................................................70 11.1.2 Extended Functions Enable Registers (EFERs)...................................................................71 11.1.3 Extended Function Index Registers (EFIRs), Extended Function Data Registers (EFDRs) .71
11.2 Configuration Sequence..................................................................................................... 71
11.2.1 Enter the extended function mode .......................................................................................71 11.2.2 Configurate the configuration registers.................................................................................71 11.2.3 Exit the extended function mode ..........................................................................................71 11.2.4 Software programming example...........................................................................................72
12. 13.
ACPI REGISTERS FEATURES................................................................................................... 73 SMART CARD INTERFACE........................................................................................................ 74 13.1 Receiver Buffer Register (RBR, read only at "base address + 0" when BDLAB = 0)....... 74 13.2 Transmitter Buffer Register (TBR, write only at "base address + 0" when BDLAB = 0)... 74 13.3 Interrupt Control Register (ICR, at "base address + 1" when BDLAB = 0)....................... 74 13.4 Interrupt Status Register (ISR, read only at "base address + 2") ..................................... 75 13.5 Smart Card FIFO Control Register (SCFR, write only at "base address + 2") ................. 76 13.6 Smart Card Control Register (SCCR, write only at "base address + 3") .......................... 77 13.7 Interrupt Enable Register (IER, at "base address + 4") .................................................... 77 -4-
W83627SF
13.8 Smart Card Status Register (SCSR, at "base address + 5") ............................................ 78 13.9 Extended Control Register (ECR, at "base address + 7") ................................................ 79 13.10 Baud rate divisor Latch High and Baud rate divisor Latch Low (BHL and BLL at "base address + 1" and "base address + 0" respectively when BDLAB = 1) ............................ 80 14. SERIAL IRQ ................................................................................................................................. 81 14.1 Start Frame ........................................................................................................................ 81 14.2 IRQ/Data Frame ................................................................................................................. 81 14.3 Stop Frame......................................................................................................................... 82 15. CONFIGURATION REGISTER ................................................................................................... 83 15.1 Chip (Global) Control Register ........................................................................................... 83 15.2 Logical Device 0 (FDC) ...................................................................................................... 89 15.3 Logical Device 1 (Parallel Port).......................................................................................... 92 15.4 Logical Device 2 (UART A) ................................................................................................ 93 15.5 Logical Device 3 (UART B) ................................................................................................ 93 15.6 Logical Device 5 (KBC) ...................................................................................................... 95 15.7 Logical Device 6 (CIR) ....................................................................................................... 96 15.8 Logical Device 7 (Game Port and MIDI Port and GPIO Port 1)........................................ 96 15.9 Logical Device 8 (GPIO Port 2).......................................................................................... 97 15.10 Logical Device 9 (GPIO Port 3,4 are powered by standby source VSB)........................... 99 15.11 Logical Device A (ACPI)................................................................................................... 100 15.12 Logical Device B (Smart Card interface).......................................................................... 107 15.13 Logical Device C (GPIO Port 5,6,7 This power of the Ports is Source VCC) .................. 107 16. SPECIFICATIONS ..................................................................................................................... 109 16.1 Absolute Maximum Ratings ............................................................................................. 109 16.2 DC CHARACTERISTICS ................................................................................................. 109 17. APPLICATION CIRCUITS ......................................................................................................... 112 17.1 Parallel Port Extension FDD ............................................................................................ 112 17.2 Parallel Port Extension 2FDD .......................................................................................... 113 17.3 Four FDD Mode................................................................................................................ 113 18. 19. 20. 21. ORDERING INSTRUCTION ...................................................................................................... 114 HOW TO READ THE TOP MARKING....................................................................................... 114 PACKAGE DIMENSIONS .......................................................................................................... 115 REVISION HISTORY ................................................................................................................. 116
-5-
Publication Release Date: May 31, 2005 Revision A1
W83627SF
1. GENERAL DESCRIPTION
The W83627SF is the new generation of Winbond's LPC I/O products. It features a whole new interface, namely LPC (Low Pin Count) interface, which is supported in mainstream Intel chip-set. This interface as its name suggests is to provide an economical implementation of I/O's interface with lower pin count and still maintains equivalent performance as its ISA interface counterpart. Approximately 40 pins are saved in LPC I/O comparing to ISA implementation. With this additional freedom, we can implement more devices on a single chip as demonstrated in W83627SF's integration of Game Port and MIDI Port. It is fully transparent in terms of software which means no BIOS or device driver update is needed except chip-specific configuration. As Smart Card application is gaining more and more attention, W83627SF also implements a smart card reader interface featuring Smart wake-up function. This smart card reader interface fully meets the ISO7816 and PC/SC (Personal Computer/Smart Card Workgroup) standards. W83627SF provides a minimum external components and lowest cost soultion for smart card applications. The disk drive adapter functions of W83627SF include a floppy disk drive controller compatible with the industry standard 82077/765, data separator, write pre-compensation circuit, decode logic, data rate selection, clock generator, drive interface control logic, and interrupt and DMA logic. The wide range of functions integrated onto the W83627SF greatly reduces the number of components required for interfacing with floppy disk drives. The W83627SF supports four 360K, 720K, 1.2M, 1.44M, or 2.88M disk drives and data transfer rates of 250 Kb/s, 300 Kb/s, 500 Kb/s,1 Mb/s, and 2 Mb/s. The W83627SF provides two high-speed serial communication ports (UARTs), one of which supports serial Infrared communication. Each UART includes a 16-byte send/receive FIFO, a programmable baud rate generator, complete modem control capability, and a processor interrupt system. Both UARTs provide legacy speed with baud rate up to 115.2k bps and also advanced speed with baud rates of 230k, 460k, or 921k bps which support higher speed modems. In addition, the W83627SF provides IR functions: IrDA 1.0 (SIR for 1.152K bps) and TV remote IR (Consumer IR, supporting NEC, RC-5, extended RC-5, and RECS-80 protocols). The W83627SF supports one PC-compatible printer port (SPP), Bi-directional Printer port (BPP) and also Enhanced Parallel Port (EPP) and Extended Capabilities Port (ECP). Through the printer port interface pins, also available are: Extension FDD Mode and Extension 2FDD Mode allowing one or two external floppy disk drives to be connected. The configuration registers support mode selection, function enable/disable, and power down function selection. Furthermore, the configurable PnP features are compatible with the plug-and-play feature demand of Windows 95/98TM, which makes system resource allocation more efficient than ever. The W83627SF provides functions that complies with ACPI (Advanced Configuration and Power Interface), which includes support of legacy and ACPI power management through PME# or PSOUT# function pins. For OnNow keyboard Wake-Up, OnNow mouse Wake-Up, and OnNow CIR Wake-Up. The W83627SF also has auto power management to reduce the power consumption. The keyboard controller is based on 8042 compatible instruction set with a 2K Byte programmable ROM and a 256-Byte RAM bank. Keyboard BIOS firmware are available with optional AMIKEY Phoenix MultiKey/42
TM TM -2,
, or customer code.
The W83627SF provides a set of flexible I/O control functions to the system designer through a set of General Purpose I/O ports. These GPIO ports may serve as simple I/O or may be individually configured to provide a predefined alternate function. The W83627SF is made to fully comply with Microsoft PC98 and PC99 Hardware Design Guide. Moreover, W83627SF is made to meet the specification of PC2000/PC2001's requirement in the power management: ACPI and DPM (Device Power Management). -6-
W83627SF
The W83627SF contains a game port and a MIDI port. The game port is designed to support 2 joysticks and can be applied to all standard PC game control devices. They are very important for a entertainment or consumer computer.
2. FEATURES
General
* * * * * * Meet LPC Spec. 1.01 Support LDRQ#(LPC DMA), SERIRQ (serial IRQ) Compliant with Microsoft PC2000/PC2001 Hardware Design Guide Support DPM (Device Power Management), ACPI Programmable configuration settings Single 24 or 48 MHz clock input
FDC
* * * * * * * * * * * * * Compatible with IBM PC AT disk drive systems Variable write pre-compensation with track selectable capability Support vertical recording format DMA enable logic 16-byte data FIFOs Support floppy disk drives and tape drives Detects all overrun and underrun conditions Built-in address mark detection circuit to simplify the read electronics FDD anti-virus functions with software write protect and FDD write enable signal (write data signal was forced to be inactive) Support up to four 3.5-inch or 5.25-inch floppy disk drives Completely compatible with industry standard 82077 360K/720K/1.2M/1.44M/2.88M format; 250K, 300K, 500K, 1M, 2M bps data transfer rate Support 3-mode FDD, and its Win95/98 driver
UART
* * * Two high-speed 16550 compatible UARTs with 16-byte send/receive FIFOs MIDI compatible Fully programmable serial-interface characteristics: --- 5, 6, 7 or 8-bit characters --- Even, odd or no parity bit generation/detection --- 1, 1.5 or 2 stop bits generation
-7-
Publication Release Date: May 31, 2005 Revision A1
W83627SF
* Internal diagnostic capabilities: --- Loop-back controls for communications link fault isolation --- Break, parity, overrun, framing error simulation Programmable baud generator allows division of 1.8461 MHz and 24 MHz by 1 to (216-1) Maximum baud rate up to 921k bps for 14.769 MHz and 1.5M bps for 24 MHz
* *
Infrared
* * * Support IrDA version 1.0 SIR protocol with maximum baud rate up to 115.2K bps Support SHARP ASK-IR protocol with maximum baud rate up to 57,600 bps Support Consumer IR
Parallel Port
* * * * * * Compatible with IBM parallel port Support PS/2 compatible bi-directional parallel port Support Enhanced Parallel Port (EPP) - Compatible with IEEE 1284 specification Support Extended Capabilities Port (ECP) - Compatible with IEEE 1284 specification Extension FDD mode supports disk drive B; and Extension 2FDD mode supports disk drives A and B through parallel port Enhanced printer port back-drive current protection
Keyboard Controller
* * * * * * * * * * 8042 based with optional F/W from AMIKKEY -2, Phoenix MultiKey/42 2K bytes of programmable ROM, and 256 bytes of RAM Asynchronous Access to Two Data Registers and One status Register Software compatibility with the 8042 Support PS/2 mouse Support port 92 Support both interrupt and polling modes Fast Gate A20 and Hardware Keyboard Reset 8 Bit Timer/ Counter Support binary and BCD arithmetic 6 MHz, 8 MHz, 12 MHz, or 16 MHz operating frequency
TM TM
or customer code with
Game Port
* * Support two separate Joysticks Support every Joystick two axis (X,Y) and two button (A,B) controllers
-8-
W83627SF
MIDI Port
* * * The baud rate is 31.25 Kbaud 16-byte input FIFO 16-byte output FIFO
General Purpose I/O Ports
* * 40 programmable general purpose I/O ports General purpose I/O ports can serve as simple I/O ports, interrupt steering inputs, ,watching dog timer output, power LED output, infrared I/O pins, KBC control I/O pins, suspend LED output, RSMRST# signal, PWROK signal, STR(suspend to DRAM) function, VID control function,
OnNow Functions
* * * * * Keyboard Wake-Up by programmable keys Mouse Wake-Up by programmable buttons CIR Wake-Up by programmable keys SMART Card Wake-up by SCPSNT On Now Wake-Up from all of the ACPI sleeping states (S1-S5)
Smart Card Reader Interface
* * * * PC/SC T=0, T=1 compliant ISO7816 protocol compliant With 16-byte send/receive FIFOs Programmable baud generator
Package
* 128-pin PQFP
-9-
Publication Release Date: May 31, 2005 Revision A1
W83627SF
3. PIN CONFIGURATION FOR W83627SF
MCLK MDATA PSOUT# PSIN CIRRX#/GP34 RSMRST#/GP33 PWROK/GP32 PWRCTL#/GP31 SLP_SX#/GP30 VBAT SUSCLKIN GP63 VCC CTSB# DSRB# RTSB#/ENGMTO DTRB# SINB SOUTB/PEN48 DCDB# RIB# VSS IRTX/GP26 IRRX/GP25 WDTO/GP24 PLED/GP23 GP22/VID14 GP21/VID13 XIN VBAT XOUT 32KOUT GP57CLK/VIDSEL GP62/VIDI2 GP61/VIDI1 GP60/VIDI0 GP4PWR GP42/STREN 11 1 99 9 9 9 99 99 9 8 8 8 888 88 8 877 7 7 77 7 7 7 7 6 6 6 6 6 00 0 98 7 6 5 43 21 0 9 8 7 654 32 1 098 7 6 54 3 2 1 0 9 8 7 6 5 21 0 S5IN#/GP41 STRCTL/GP40 GP56/PVIDLIM1 GP55/VIDO4 GP54/VIDO3 GP53/VIDO2 GP52/VIDO1 GP51/VIDO0 GP50/PVIDLIM0 SCPSNT/GP74 SCIO/GP73 VCC SCPWR/GP72/STGP72 SCCLK/GP71 VSS SCRST#/GP70/STGP70 MSI/GP20 MSO/IRQIN0 GPSA2/GP17 GPSB2/GP16 GPY1/GP15 GPY2/P16/GP14 GPX2/P15/GP13 GPX1/P14/GP12 GPSB1/P13/GP11 GPSA1/P12/GP10 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
W83627SF
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39
1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 33 3 3 33 33 1 2 3 4 5 67 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 12 3 4 56 78
SUSLED/GP35 KDATA KCLK VSB KBRST A20GATE KBLOCK# RIA# DCDA# VSS PENKBC/SOUTA SINA PNPCSV#/DTRA# HEFRAS/RTSA# DSRA# CTSA# VCC STB# AFD# ERR# INIT# SLIN# PD0 PD1 PD2 PD3
PD4 PD5 PD6 PD7 ACK# BUSY PE SLCT LRESET# LFRAME# VCC3V LAD0 LAD1 LAD2 LAD3 SERIRQ LDRQ# PCICLK VSS PME# CLKIN DSKCHG# HEAD# RDATA# WP# TRAKD# VCC WE# WD# STEP# DIR# MOB# DSA# DSB# MOA# INDEX# DRVDEN1/IRQIN1/SMI#/GP27 DRVDEN0
-10-
W83627SF
4. PIN DESCRIPTION
Note: Please refer to Section 16.2 DC CHARACTERISTICS for details.
I/O8t I/O12t
- TTL level bi-directional pin with 8 mA source-sink capability - TTL level bi-directional pin with 12 mA source-sink capability
I/O12tp3 - 3.3V TTL level bi-directional pin with 12 mA source-sink capability I/OD12t - TTL level bi-directional pin open drain output with 12 mA sink capability I/OD16t - TTL level bi-directional pin open drain output with 16 mA sink capability I/OD24 - TTL level bi-directional pin open drain output with 24A sink capability OUT2 - Output pin with 2 mA source-sink capability OUT12 - Output pin with 12 mA source-sink capability O12tp3 - 3.3V output pin with 12 mA source-sink capability OD12 OD24 INcs INt INtd INts INtsp3 - Open-drain output pin with 12 mA sink capability - Open-drain output pin with 24 mA sink capability - CMOS level Schmitt-trigger input pin - TTL level input pin - TTL level input pin with internal pull down resistor - TTL level Schmitt-trigger input pin - 3.3V TTL level Schmitt-trigger input pin
4.1
LPC Interface
PIN I/O FUNCTION
SYMBOL
CLKIN PME# PCICLK LDRQ# SERIRQ LAD[3:0] LFRAME# LRESET# SUSCLKIN
18 19 21 22 23 24-27 29 30 75
INt OD12 INtsp3 O12tp3 I/OD12t I/O12tp3 INtsp3 INtsp3 INts
System clock input. According to the input frequency 24MHz or 48MHz, it is selectable through register. Default is 24MHz input. Generated PME event. PCI clock input. Encoded DMA Request signal. Serial IRQ input/Output. These signal lines communicate address, control, and data information over the LPC bus between a host and a peripheral. Indicates start of a new cycle or termination of a broken cycle. Reset signal. It can connect to PCIRST# signal on the host. 32khz clock input, for CIR only.
- 11 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
4.2 FDC Interface
PIN I/O FUNCTION
SYMBOL
DRVDEN0 DRVDEN1 SMI# IRQIN1 GP27
1
OD24 OD12 OD12 INt I/OD12t
Drive Density Select bit 0. Drive Density Select bit 1. (Default) System Management Interrupt. Interrupt channel input. General purpose I/O port 2 bit 7. This Schmitt-triggered input from the disk drive is active low when the head is positioned over the beginning of a track marked by an index hole. This input pin is pulled up internally by a 1 K resistor. The resistor can be disabled by bit 7 of L0-CRF0 (FIPURDWN). Motor A On. When set to 0, this pin enables disk drive 0. This is an open drain output. Drive Select B. When set to 0, this pin enables disk drive B. This is an open drain output. Drive Select A. When set to 0, this pin enables disk drive A. This is an open drain output. Motor B On. When set to 0, this pin enables disk drive 1. This is an open drain output. Direction of the head step motor. An open drain output. Logic 1 = outward motion Logic 0 = inward motion Step output pulses. This active low open drain output produces a pulse to move the head to another track. Write data. This logic low open drain writes precompensation serial data to the selected FDD. An open drain output. Write enable. An open drain output. Track 0. This Schmitt-triggered input from the disk drive is active low when the head is positioned over the outermost track. This input pin is pulled up internally by a 1 K resistor. The resistor can be disabled by bit 7 of L0-CRF0 (FIPURDWN). Write protected. This active low Schmitt input from the disk drive indicates that the diskette is write-protected. This input pin is pulled up internally by a 1 K resistor. The resistor can be disabled by bit 7 of L0-CRF0 (FIPURDWN).
2
INDEX#
3
INcs
MOA# DSB# DSA# MOB#
4 5 6 7
OD24 OD24 OD24 OD24
DIR#
8
OD24
STEP# WD# WE#
9 10 11
OD24 OD24 OD24
TRAK0#
13
INcs
WP#
14
INcs
-12-
W83627SF
FDC Interface, continued
SYMBOL
PIN
I/O
FUNCTION
RDATA#
15
INcs
The read data input signal from the FDD. This input pin is pulled up internally by a 1 K resistor. The resistor can be disabled by bit 7 of L0-CRF0 (FIPURDWN). Head select. This open drain output determines which disk drive head is active. Logic 1 = side 0 Logic 0 = side 1 Diskette change. This signal is active low at power on and whenever the diskette is removed. This input pin is pulled up internally by a 1 Kresistor. The resistor can be disabled by bit 7 of L0-CRF0 (FIPURDWN).
HEAD#
16
OD24
DSKCHG#
17
INcs
4.3
Multi-Mode Parallel Port
PIN I/O FUNCTION
SYMBOL
SLCT
31
INt
OD12
OD12
PE
32
INt
OD12
OD12
PRINTER MODE: An active high input on this pin indicates that the printer is selected. Refer to the description of the parallel port for definition of this pin in ECP and EPP mode. EXTENSION FDD MODE: WE2# This pin is for Extension FDD B; its function is the same as the WE# pin of FDC. EXTENSION 2FDD MODE: WE2# This pin is for Extension FDD A and B; its function is the same as the WE# pin of FDC. PRINTER MODE: An active high input on this pin indicates that the printer has detected the end of the paper. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode. EXTENSION FDD MODE: WD2# This pin is for Extension FDD B; its function is the same as the WD# pin of FDC. EXTENSION 2FDD MODE: WD2# This pin is for Extension FDD A and B; its function is the same as the WD# pin of FDC.
- 13 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
BUSY
33
INt
PRINTER MODE: An active high input indicates that the printer is not ready to receive data. Refer to the description of the parallel port for definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: MOB2# This pin is for Extension FDD B; its function is the same as the MOB# pin of FDC.
OD12
EXTENSION 2FDD MODE: MOB2# This pin is for Extension FDD A and B; its function is the same as the MOB# pin of FDC.
ACK#
34
INt
PRINTER MODE: ACK# An active low input on this pin indicates that the printer has received data and is ready to accept more data. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: DSB2# This pin is for the Extension FDD B; its functions is the same as the DSB# pin of FDC.
OD12
EXTENSION 2FDD MODE: DSB2# This pin is for Extension FDD A and B; its function is the same as the DSB# pin of FDC.
PD7
35
I/OD12t
PRINTER MODE: PD7 Parallel port data bus bit 7. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode. EXTENSION FDD MODE: This pin is a tri-state output. EXTENSION 2FDD MODE: DSA2# This pin is for Extension FDD A; its function is the same as the DSA# pin of FDC.
OD12
PD6
36
I/OD12t
PRINTER MODE: PD6 Parallel port data bus bit 6. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: This pin is a tri-state output. EXTENSION. 2FDD MODE: MOA2# This pin is for Extension FDD A; its function is the same as the MOA# pin of FDC.
-14-
W83627SF
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
PD5
37
I/O12t
PRINTER MODE: PD5 Parallel port data bus bit 5. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode. EXTENSION FDD MODE: This pin is a tri-state output. EXTENSION 2FDD MODE: This pin is a tri-state output. PRINTER MODE: PD4 Parallel port data bus bit 4. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
PD4 38 I/O12t
INt
EXTENSION FDD MODE: DSKCHG2# This pin is for Extension FDD B; the function of this pin is the same as the DSKCHG# pin of FDC. It is pulled high internally.
INt
EXTENSION 2FDD MODE: DSKCHG2# This pin is for Extension FDD A and B; this function of this pin is the same as the DSKCHG# pin of FDC. It is pulled high internally.
PD3
39
I/O12t
PRINTER MODE: PD3 Parallel port data bus bit 3. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
INt
EXTENSION FDD MODE: RDATA2# This pin is for Extension FDD B; its function is the same as the RDATA# pin of FDC. It is pulled high internally.
INt
EXTENSION 2FDD MODE: RDATA2# This pin is for Extension FDD A and B; its function is the same as the RDATA# pin of FDC. It is pulled high internally. PRINTER MODE: PD2 Parallel port data bus bit 2. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode. EXTENSION FDD MODE: WP2# This pin is for Extension FDD B; its function is the same as the WP# pin of FDC. It is pulled high internally.
PD2
40
I/O12t
INt
INt
EXTENSION. 2FDD MODE: WP2# This pin is for Extension FDD A and B; its function is the same as the WP# pin of FDC. It is pulled high internally.
- 15 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
PD1
41
I/O12t
PRINTER MODE: PD1 Parallel port data bus bit 1. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode. EXTENSION FDD MODE: TRAK02# This pin is for Extension FDD B; its function is the same as the TRAK0# pin of FDC. It is pulled high internally.
INt
INt
EXTENSION. 2FDD MODE: TRAK02# This pin is for Extension FDD A and B; its function is the same as the TRAK0# pin of FDC. It is pulled high internally.
PD0
42
I/O12t
PRINTER MODE: PD0 Parallel port data bus bit 0. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
INt
EXTENSION FDD MODE: INDEX2# This pin is for Extension FDD B; its function is the same as the INDEX# pin of FDC. It is pulled high internally.
INt
EXTENSION 2FDD MODE: INDEX2# This pin is for Extension FDD A and B; its function is the same as the INDEX# pin of FDC. It is pulled high internally.
SLIN#
43
OD12
PRINTER MODE: SLIN# Output line for detection of printer selection. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode. EXTENSION FDD MODE: STEP2# This pin is for Extension FDD B; its function is the same as the STEP# pin of FDC.
OD12
OD12
EXTENSION 2FDD MODE: STEP2# This pin is for Extension FDD A and B; its function is the same as the STEP# pin of FDC.
-16-
W83627SF
Multi-Mode Parallel Port, continued
SYMBOL
PIN
I/O
FUNCTION
INIT#
44
OD12
PRINTER MODE: INIT# Output line for the printer initialization. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode. EXTENSION FDD MODE: DIR2# This pin is for Extension FDD B; its function is the same as the DIR# pin of FDC.
OD12
OD12
EXTENSION 2FDD MODE: DIR2# This pin is for Extension FDD A and B; its function is the same as the DIR# pin of FDC.
ERR#
45
INt
PRINTER MODE: ERR# An active low input on this pin indicates that the printer has encountered an error condition. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12 OD12
EXTENSION FDD MODE: HEAD2# This pin is for Extension FDD B; its function is the same as the HEAD#pin of FDC. EXTENSION 2FDD MODE: HEAD2# This pin is for Extension FDD A and B; its function is the same as the HEAD# pin of FDC.
AFD#
46
OD12
PRINTER MODE: AFD# An active low output from this pin causes the printer to auto feed a line after a line is printed. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
OD12
EXTENSION FDD MODE: DRVDEN0 This pin is for Extension FDD B; its function is the same as the DRVDEN0 pin of FDC.
OD12
EXTENSION 2FDD MODE: DRVDEN0 This pin is for Extension FDD A and B; its function is the same as the DRVDEN0 pin of FDC.
STB#
47
OD12
PRINTER MODE: STB# An active low output is used to latch the parallel data into the printer. Refer to the description of the parallel port for the definition of this pin in ECP and EPP mode.
-
EXTENSION FDD MODE: This pin is a tri-state output. EXTENSION 2FDD MODE: This pin is a tri-state output.
- 17 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
4.4 Serial Port Interface
PIN I/O FUNCTION
SYMBOL
CTSA# CTSB# DSRA# DSRB# RTSA# HEFRAS
49 78 50 79 51
INt
Clear To Send. It is the modem control input. The function of these pins can be tested by reading bit 4 of the handshake status register.
INt
Data Set Ready. An active low signal indicates the modem or data set is ready to establish a communication link and transfer data to the UART. UART A Request To Send. An active low signal informs the modem or data set that the controller is ready to send data. During power-on reset, this pin is pulled down internally and is defined as HEFRAS, which provides the power-on value for CR26 bit 6 (HEFRAS). A 4.7 k is recommended if intends to pull up. (select 4EH as configuration I/O ports address)
I/O8t
RTSB# ENGMTO
80
I/O8t
UART B Request To Send. An active low signal informs the modem or data set that the controller is ready to send data. Power on setting pin for enabling Watch Dog timer and its countdown. This pin is pulled down internally and provides the power-on value for bit 0 of CR30 and a count value of 0x0A for CRF6 in logical device 8. A 4.7 k is recommended if intends to pull up.
DTRA# PNPCSV#
52
I/O8t
UART A Data Terminal Ready. An active low signal informs the modem or data set that the controller is ready to communicate. During power-on reset, this pin is pulled down internally and is defined as PNPCSV#, which provides the power-on value for CR24 bit 0 (PNPCSV#). A 4.7 k is recommended if intends to pull up. (clear the default value of FDC, UARTs, PRT, Game port and MIDI port)
DTRB#
81
I/O8t
UART B Data Terminal Ready. An active low signal informs the modem or data set that controller is ready to communicate. Serial Input. It is used to receive serial data through the communication link. UART A Serial Output. It is used to transmit serial data out to the communication link. During power-on reset, this pin is pulled down internally and is defined as PENKBC, which provides the power-on value for CR24 bit 2 (ENKBC). A 4.7 k resistor is recommended if intends to pull up. (enable KBC)
SINA SINB SOUTA PENKBC
53 82 54
INt I/O8t
-18-
W83627SF
Serial Port Interface, continued
SYMBOL
PIN
I/O
FUNCTION
SOUTB PEN48
83
I/O8t
UART B Serial Output. During power-on reset, this pin is pulled down internally and is defined as PEN48, which provides the power-on value for CR24 bit 6 (EN48). A 4.7 k resistor is recommended if intends to pull up.
DCDA# DCDB# RIA# RIB#
56 84 57 85
INt INt
Data Carrier Detect. An active low signal indicates the modem or data set has detected a data carrier. Ring Indicator. An active low signal indicates that a ring signal is being received from the modem or data set.
4.5
KBC Interface
PIN I/O FUNCTION
SYMBOL
KBLOCK# A20GATE KBRST KCLK KDATA MCLK MDATA
58 59 60 62 63 65 66
INt OUT12 OUT12 I/OD16t I/OD16t I/OD16t I/OD16t
Keyboard inhibit control input. This pin is after system reset. Internal pull high. (KBC P17) Gate A20 output. This pin is high after system reset. (KBC P21) Keyboard reset. This pin is high after system reset. (KBC P20) Keyboard Clock. Keyboard Data. PS2 Mouse Clock. PS2 Mouse Data.
4.6
ACPI Interface
PIN I/O FUNCTION
SYMBOL
PSOUT# PSIN VBAT
67 68 74
OD12 IN t d PWR
Panel Switch Output. This signal is used for Wake-Up system from S5c o l d state. This pin is pulse output, active low. Panel Switch Input. This pin is high active with an internal pull down resistor. Battery voltage input.
- 19 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
4.7 Game Port & MIDI Port
PIN I/O FUNCTION
SYMBOL
MSI GP20 MSO IRQIN0 GPSA2 GP17 GPSB2 GP16 GPY1 GP15 GPY2 GP14 P16 GPX2 GP13 P15 GPX1 GP12 P14 GPSB1 GP11 P13 GPSA1 GP10 P12
119
INt I/OD12t
MIDI serial data input. General purpose I/O port 2 bit 0. MIDI serial data output. (Default) Alternate Function input: Interrupt channel input. Active-low, Joystick I switch input 2. This pin has an internal pull-up resistor. (Default) General purpose I/O port 1 bit 7. Active-low, Joystick II switch input 2. This pin has an internal pull-up resistor. (Default) General purpose I/O port 1 bit 6. Joystick I timer pin. this pin connect to Y positioning variable resistors for the Josystick. (Default) General purpose I/O port 1 bit 5. Joystick II timer pin. this pin connect to Y positioning variable resistors for the Josystick. (Default) General purpose I/O port 1 bit 4. Alternate Function Output:KBC P16 I/O port. Joystick II timer pin. this pin connect to X positioning variable resistors for the Josystick. (Default) General purpose I/O port 1 bit 3. Alternate Function Output:KBC P15 I/O port. Joystick I timer pin. this pin connect to X positioning variable resistors for the Josystick. (Default) General purpose I/O port 1 bit 2. Alternate Function Output:KBC P14 I/O port. Active-low, Joystick II switch input 1. (Default) General purpose I/O port 1 bit 1. Alternate Function Output:KBC P13 I/O port. Active-low, Joystick I switch input 1. (Default) General purpose I/O port 1 bit 0. Alternate Function Output:KBC P12 I/O port.
120 121
OUT12 INt INcs I/OD12t
122
INcs I/OD12
123
I/OD12 I/OD12t
124
I/OD12 I/OD12t I/OD12t
125
I/OD12 I/OD12t I/OD12t
126
I/OD12 I/OD12t I/OD12t
127
INcs I/OD12t I/OD12t
128
INcs I/OD12t I/OD12t
-20-
W83627SF
4.8 General Purpose I/O Port
4.8.1 General Purpose I/O Port 1 (Power source is Vcc)
see 4.7 Game Port & MIDI Port
4.8.2 General Purpose I/O Port 2 (Power source is Vcc)
SYMBOL PIN I/O FUNCTION
GP26 IRTX GP25 IRRX GP24 WDTO GP23 PLED GP22 VIDI4 GP21 VIDI3
87 88 89 90 91 92
I/OD12t OUT12 I/OD12t INts I/OD12t OD12 I/OD24t OD24 I/OD12t INt I/OD12t INt
General purpose I/O port 2 bit 6. Alternate Function Output: Infrared Transmitter Output. (Default) General purpose I/O port 2 bit 5. Alternate Function Input: Infrared Receiver input. (Default) General purpose I/O port 2 bit 4. Watch dog timer output. (Default) General purpose I/O port 2 bit 3. Power LED output, this signal is low after system reset. (Default) General purpose I/O port 2 bit 2. Alternate VID input bit 4. General purpose I/O port 2 bit 1. Alternate VID input bit 3.
4.8.3 General Purpose I/O Port 3 (Power source is VSB)
SYMBOL PIN I/O FUNCTION
GP35 SUSLED GP34 CIRRX# GP33 RSMRST# GP32 PWROK
64
I/OD24t OD24 I/OD12t OD12 I/OD12t OD12 I/OD12t OD12
General purpose I/O port 3 bit 5. Suspend LED output, it can program to flash when suspend state. This function can work without VCC. (Default) General purpose I/O port 3 bit 4. Consumer IR receiving input. This pin can Wake-Up system from S5cold. (Default) General purpose I/O port 3 bit 3. This pin generates the RSMRST signal while the VSB come in. (Default) General purpose I/O port 3 bit 2. This pin generates the PWROK signal while the VCC come in. (Default)
69
70
71
- 21 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
General Purpose I/O Port 3 (Power source is VSB) , continued
SYMBOL
PIN
I/O
FUNCTION
GP31 PWRCTL# GP30 SLP_SX#
72
I/OD12t OD12 I/OD12t INt
General purpose I/O port 3 bit 1. This pin generates the PWRCTL# signal while the power failure. (Default) General purpose I/O port 3 bit 0. Chipset suspend C status input.
73
4.9
SMART CARD Interface and General Purpose I/O port 7 (Powered by VCC except SCPSNT# which is powered by VSB)
PIN I/O FUNCTION
SYMBOL
SCPSNT GP74 SCIO GP73 SCPWR GP72 STGP72
112
INts I/O12ts I/O12t I/OD12t OUT12 I/O12t
Smart card present detection Schmitt-trigger input. General purpose I/O port 7 bit 4. Smart card data I/O channel. General purpose I/O port 7 bit 3. Smart card power control. General purpose I/O port 7 bit 2. Power on setting pin for selecting functions of GP7. Setting value is latched on the rising edge of POWEROK. This pin is internally pulled down during power on, a 4.7 k resistor is recommended if intends to pull up. Refer to detailed descrption of CR2C bit 6, 5.
113
115
SCCLK GP71 SCRST# GP70 STGP70
116
OUT12 I/O12t OUT12 I/O12t
Smart card clock output. General purpose I/O port 7 bit 1. Smart card reset output. General purpose I/O port 7 bit 0. Power on setting pin for selecting functions of GP7. Setting value is latched on the rising edge of POWEROK. This pin is internally pulled down during power on, a 4.7 k resistor is recommended if intends to pull up. Refer to detailed descrption of CR2C bit 6, 5.
118
-22-
W83627SF
4.10 General Purpose I/O Port 4 (Powered by GP4PWR)
SYMBOL PIN I/O FUNCTION
GP4PWR GP42 STREN
101 102
PWR I/O12t
+5V stand-by power supply dedicated for GP4. General purpose I/O port 4 bit 2. Power on setting pin for selecting functions of GP4. Setting value is latched on the rising edge of RSMRST#. This pin is internally pulled down during power on, a 4.7 k resistor is recommended if intends to pull up. Refer to detailed description of CR29 bit 0.
GP41 S5IN# GP40 STRCTL
103 104
I/O12t I/O12t
General purpose I/O port 4 bit 1. S5 input signal to indicate in S5 state. General purpose I/O port 4 bit 0. For suspend to ram function to control Ram power.
4.11 General Purpose I/O Port 5, 6 (Powered by VCC)
SYMBOL PIN I/O FUNCTION
GP57 VIDSEL
97
I/O12t
General purpose I/O port 5 bit 7. Power on setting pin for selecting VID function. Setting value is latched on the rising edge of POWEROK. This pin is internally pulled down during power on, a 4.7 k resistor is recommended if intends to pull up. Refer to detailed description of CR2C bit 7.
GP56 PVIDLIM1
105
I/O12t
General purpose I/O port 5 bit 6. Power on setting pin for selecting VID guarding function. Setting value is latched on the rising edge of POWEROK. This pin is internally pulled down during power on, a 4.7 k resistor is recommended if intends to pull up. Refer to detailed description of bit 6 of CRFA in logical device C.
GP55 VIDO4 GP54 VIDO3 GP53 VIDO2
106
I/OD12t OD12 I/OD12t OD12 I/OD12t OD12
General purpose I/O port 5 bit 5. Alternate VID output bit 4. General purpose I/O port 5 bit 4. Alternate VID output bit 3. General purpose I/O port 5 bit 3. Alternate VID output bit 2.
107
108
- 23 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
General Purpose I/O Port 5, 6 (Powered by VCC), continued
SYMBOL
PIN
I/O
FUNCTION
GP52 VIDO1 GP51 VIDO0 GP50 PVIDLIM0
109
I/OD12t OD12 I/OD12t OD12 I/O12t
General purpose I/O port 5 bit 2. Alternate VID output bit 1. General purpose I/O port 5 bit 1. Alternate VID output bit 0. General purpose I/O port 5 bit 0. Power on setting pin for selecting VID guarding function. Setting value is latched on the rising edge of POWEROK. This pin is internally pulled down during power on, a 4.7 k resistor is recommended if intends to pull up. Refer to detailed description of bit 5 of CRFA in logical device C.
110
111
GP63 GP62 VIDI2 GP61 VIDI1 GP60 VIDI0
76 98 99 100
I/OD12t I/OD12t INt I/OD12t INt I/OD12t INt
General purpose I/O port 6 bit 2. General purpose I/O port 6 bit 2. Alternate VID input bit 2. General purpose I/O port 6 bit 1. Alternate VID input bit 1. General purpose I/O port 6 bit 0. Alternate VID input bit 0.
4.12 32KHz crystal oscillator
SYMBOL
XIN VBAT
PIN
I/O
FUNCTION
93 94 95 96
IN PWR OUT OUT2
Crystal input Dedicated power supply for oscillator. Crystal output 32KHz output clock.
XOUT
CLK32KOUT
4.13 POWER PINS
SYMBOL PIN FUNCTION
VCC3V VCC VSB VSS
28 12, 48, 77, 114 61 20, 55, 86, 117
+3.3V power supply for driving 3V on host interface. +5V power supply for the digital circuitry. +5V stand-by power supply for the digital circuitry. Ground.
-24-
W83627SF
5. SMART CARD INTERFACE
Because of similarity of transmission protocol to UART, the register map of Smart Card interface of Winbond I/O is designed to be UART-like for easy programming. Details of these registers are described as follows.
5.1
Receiver Buffer Register (RBR, read only at "base address + 0" when BDLAB = 0)
Data from IC card are buffered in this register for host to read.
5.2
Transmitter Buffer Register (TBR, write only at "base address + 0" when BDLAB = 0)
Host writes to this register to send data to IC card.
5.3
Interrupt Control Register (ICR, at "base address + 1" when BDLAB = 0)
This 8-bit register allows the four types of interrupts. The interrupt system can be completely disabled by resetting bits 0 through 4 of the Interrupt Control Register (ICR). A selected interrupt can be enabled by setting the appropriate bits of this register to a logical 1.
7 0 6 0 5 0 4 3 0 Enable RBR Data Ready Interrupt (ERDRI) Enable TBR Empty Interrupt (ETBREI) Enable SSR Interrupt (ESSRI) Enabel SCPSNT Interrupt (ESCPTI) 2 1 0
Bit 7-5: These bits are always logic 0. Bit 4: ESCPTI. Setting this bit to a logical 1 enables SCPSNT interrupt when a card is inserted. Bit 3: This bit is always logic 0. Bit 2: ESSRI. Setting this bit to a logical 1 enables Smart Card interface status register interrupt. Bit 1: ETBREI. Setting this bit to a logical 1 enables TBR empty interrupt. Bit 0: ERDRI. Setting this bit to a logical 1 enables RBR data ready interrupt.
- 25 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
5.4 Interrupt Status Register (ISR, read only at "base address + 2")
This register reflects the Smart Card interface interrupt status, which is encoded by different interrupt sources into 4 bits.
7 6 5 4 3 2 1 0 No interrupt pending Interrupt status bit 0 Interrupt status bit 0 Interrupt status bit 0 SCPSNT toggle Interrupt (SCPTI) SCPSNT line status FIFO enabled FIFO enabled
Bit 7, 6: These two bits are set to a logical 1 when SFR bit 0 = 1. Bit 5: Reflect value of SCPSNT line status. Bit 4: Set to 1 if SCPSNT toggles when this type of interrupt is enabled. Bit 0 of this register is also set to 0 if this type of interrupt occurs. Bit 3 - 1: These three bits identify the priority level of the pending interrupt, as shown in the table below. Bit 0: This bit is a logical 1 if there is no interrupt pending. If one of the interrupt sources has occurred, this bit will be set to a logical 0. INTERRUPT CONTROL FUNCTION
BIT 3 ISR BIT BIT 2 1 BIT 0 INTERRUPT PRIORITY INTERRUPT SET AND FUNCTION INTERRUPT INTERRUPT SOURCE TYPE CLEAR INTERRUPT
0 0
0 1
0 1
1 0
First
No Interrupt pending Smart Card 1. OER = 1 2. PBER =1 interface Receive Status 3. NSER = 1 4. SBD = 1 RBR Data Ready 1. RBR data ready 2. FIFO interrupt active level reached Data present in RX FIFO for 4 characters period of time since last access of RX FIFO. TBR empty
Read SCSR 1. Read RBR 2. Read RBR until FIFO data under active level Read RBR 1. Write data into TBR 2. Read ISR (if priority is third)
0
1
0
0
Second
1
1
0
0
Second
FIFO Data Timeout
0
0
1
0
Third
TBR Empty
-26-
W83627SF
5.5 Smart Card FIFO Control Register (SCFR, write only at "base address + 2")
This register is used to control the FIFO functions of Smart Card interface.
7 6 5 4 3 2 1 0 FIFO enable Receiver FIFO reset Transmitter FIFO reset RX interrupt active level (LSB) RX interrupt active level (MSB)
Bit 6, 7: These two bits are used to set the active level for the receiver FIFO interrupt. For example, if the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the receiver FIFO, the interrupt will be activated to notify the CPU to read the data from the FIFO. FIFO TRIGGER LEVEL
BIT 7 BIT 6 RX FIFO INTERRUPT ACTIVE LEVEL (BYTES)
0 0 1 1 Bit 5 - 3: Reserved.
0 1 0 1
01 04 08 14
Bit 2: Setting this bit to a logical 1 resets the TX FIFO counter logic to initial state. This bit will be cleared to a logical 0 by itself after being set to a logical 1. Bit 1: Setting this bit to a logical 1 resets the RX FIFO counter logic to initial state. This bit will be cleared to a logical 0 by itself after being set to a logical 1. Bit 0: This bit enables FIFO of Smart Card interface. This bit should be set to a logical 1 before other bits of SCFR are programmed.
5.6
Smart Card Control Register (SCCR, write only at "base address + 3")
The Smart Card Control Register controls and defines the parity bit protocol for asynchronous data communications.
7
6 0
5 0
4
3
2 0
1 1
0 1 Parity Bit Enable (PBE) Even Parity Enable (EPE) Baud rate Divisor Latch Access Bit (BDLAB)
- 27 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
Bit 7: BDLAB. When this bit is set to a logical 1, designers can access the divisor (in 16-bit binary format) from the divisor latches of the baudrate generator during a read or write operation. When this bit is reset, the Receiver Buffer Register, the Transmitter Buffer Register, or the Interrupt Control Register can be accessed. Bit 6 - 5: Reserved. Always 0 when read. Bit 4: EPE. This bit describes the number of logic 1's in the data word bits and parity bit only when bit 3 is programmed. When this bit is set, an even number of logic 1's are sent or checked. When the bit is reset, an odd number of logic 1's are sent or checked. Bit 3: PBE. When this bit is set, the position between the last data bit and the stop bit of the SOUT will be stuffed with the parity bit at the transmitter. For the receiver, the parity bit in the same position as the transmitter will be detected. Bit 2 - 0: Reserved. Bit 2 is always 0 and bit 1 - 0 are always 1 when read.
5.7
Interrupt Enable Register (IER, at "base address + 4")
This register contains global interrupt enable bit of Smart Card interface.
7 0
6 0
5 0
4 0
3
2 0
1 0
0 0 IRQ enable
Bit 7 - 4: Reserved. Always 0 when read. Bit 3: The Smart Card interface interrupt output is enabled by setting this bit to a logic 1. Bit 2 - 0: Reserved. Always 0 when read.
5.8
Smart Card Status Register (SCSR, at "base address + 5")
This 8-bit register provides information about the status of the data transfer during communication.
7 6 5 4 3 2 1 0 RBR Data Ready (RDR) Overrun Error (OER) Parity Bit Error (PBER) No Stop bit Error (NSER) Silent Byte Detected (SBD) Transmitter Buffer Register Empty (TBRE) Transmitter Shift Register Empty (TSRE) RX FIFO Error Indication (RFEI)
Bit 7: RFEI. This bit is set to a logic 1 when there is at least one parity bit error, no stop bit error or silent byte detected in the FIFO. It is cleared by reading SCSR until there are no remaining errors left in the FIFO.
-28-
W83627SF
Bit 6: TSRE. If the transmitting FIFO and TSR are both empty, it will be set to a logical 1. Otherwise, this bit will be reset to a logical 0. Bit 5: TBRE. When a data character is transferred from TBR to TSR, this bit will be set to a logical 1. If ETBREI of ICR is a logical 1, an interrupt will be generated to notify the CPU to write the next data. It will be reset to a logical 0 when CPU writes data into TBR or FIFO. Bit 4: SBD. This bit is set to a logical 1 to indicate that received data are kept in silent state for a full word time, including start bit, data bits, parity bit, and stop bits. When the CPU reads SCSR, it will clear this bit to a logical 0. Bit 3: NSER. This bit is set to a logical 1 to indicate that the received data have no stop bit. When CPU reads SCSR, it will clear this bit to a logical 0. Bit 2: PBER. This bit is set to a logical 1 to indicate that parity bit of received data is incorrect. When CPU reads SCSR, it will clear this bit to a logical 0. Bit 1: OER. This bit is set to a logical 1 to indicate received data have been overwritten by the next received data before they were read by CPU. When CPU reads USR, it will clear this bit to a logical 0. Bit 0: RDR. This bit is set to a logical 1 to indicate received data are ready to be read by CPU in the RBR or FIFO. After no data are left in the RBR or FIFO, the bit will be reset to a logical 0.
5.9
Extended Control Register (ECR, at "base address + 7")
7 6 5 4 3 2 1 0 Warm reset SCIO direction CLKSTP CLKSTPH SCCLK frequency select bit 0 SCCLK frequency select bit 1 Internal sampling clock base select bit 0 Internal sampling clock base select bit 1
This 8-bit register provides control settings for Smart Card interface.
Bit 7 - 6: These two bits (BASESEL1 and BASESEL0 respectively) select internal sampling clock base multiplier versus baud rate.
BASESEL1, BASESEL0 MULTIPLIER
00 01 10 11
14x 16x 18x 16x
Bit 5 - 4: These two bits (CLKSEL1 and CLKSEL0 respectively) select frequency of SCCLK.
- 29 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CLKSEL1, CLKSEL0
SCCLK FREQUUENCY
00 01 10 11
1.5 MHz 3 MHz 6 MHz 12 MHz
Bit 3: CLKSTPH. This bit determines SCCLK stuck at high or low after CLKSTP is set to 1. SCCLK stays high if CLKSTPH is equal to 1 and stays low otherwise. Bit 2: CLKSTP. Setting this bit to 1 will stop SCCLK. Bit 1: SCDIR. This bit determine direction of SCIO pin. SCIO serves as an input port if SCDIR is 1. It is an output port if SCDIR is 0. Bit 0: WRST. Writing a 1 to this bit issues a warm reset to IC card. It is self-cleared after writing a 1.
5.10 Baud rate divisor Latch High and Baud rate divisor Latch Low (BHL and BLL at "base address + 1" and "base address + 0" respectively when BDLAB = 1)
Combining with BASESEL1 and BASESEL0 of ECR, these two bytes of registers provide user all the possible combinations to cover all the available settings regarding clock rate conversion factor and baud rate adjustment factor. Smart Card interface register bit map.
BIT NUMBER
Register Address Base 0 1 2 3 4 5 6 7
+0 BDLAB =0 +0
Receiver Buffer Register (Read Only)
RBR
RX Data Bit 0
RX Data Bit 1
RX Data Bit 2
RX Data Bit 3
RX Data Bit 4
RX Data Bit 5
RX Data Bit 6
RX Data Bit 7
Transmitter BDLAB Buffer Register (Write Only) =0 +1 BDLAB =0 Interrupt Control Register
TBR
TX Data Bit 0
TX Data Bit 1
TX Data Bit 2
TX Data Bit 3
TX Data Bit 4
TX Data Bit 5
TX Data Bit 6
TX Data Bit 7
ICR
RBR Data TBR SSR Ready Empty INTERRU Interrupt Interrupt PT Enable Enable ENABLE (ERDRI) (ETBREI) (EUSRI) "0" if Interrupt Pending Interrupt Status Bit (0) Interrupt Status Bit (1)
0
+2
Interrupt Status Register (Read Only)
ISR
Interrupt Status Bit (2)
SCPSNT toggle interrupt 0 Enable (ESCPTI) SCPSNT toggle SCPSNT interrupt line status status (SCPTI)
0
0
FIFOs Enabled ** RX Interrupt Active Level (LSB)
FIFOs Enabled ** RX Interrupt Active Level (MSB)
+2
SMART CARD FIFO Control SCFR Register (Write Only)
FIFO Enable
RCVR FIFO Reset
XMIT FIFO Reset
Reserved Reserved
Reversed
-30-
W83627SF
Smart Card interface register bit map, continued
BIT NUMBER
Register Address Base 0 1 2 3 4 5 6 7
+3
SMART CARD Control Register Interrupt Enable Register SMART CARD Status Register Reserved Extended Control Register Baudrate Divisor Latch Low Baudrate Divisor Latch High
SCCR
1
1
0
Parity Bit Enable (PBE) IRQ Enable No Stop Bit Error (NSER)
Even Parity Enable (EPE) 0
0
0
Baudrate Divisor Latch Access Bit (BDLAB) 0 RX FIFO Error Indication (RFEI)
+4
IER
0 RBR Data Ready (RDR)
0 Overrun Error (OER)
0 Parity Bit Error (PBER)
0
0 TSR Empty (TSRE)
+5
SCSR
SILENT TBR BYTE Empty DETECTED (TBRE) (SBD)
+6 +7 +0 BDLAB =1 +1 BDLAB =1
ECR
Warm reset
SCIO direction
CLKSTP
CLKSTPH
SCCLK frequency select 0 Bit 4
Internal Internal SCCLK sampling sampling frequenc clock base clock base y select 1 select 0 select 1 Bit 5 Bit 6 Bit 7
BLL
Bit 0
Bit 1
Bit 2
Bit 3
BHL
Bit 8
Bit 9
Bit 10
Bit 11
Bit 12
Bit 13
Bit 14
Bit 15
6. UART PORT
6.1 Universal Asynchronous Receiver/Transmitter (UART A, UART B)
The UARTs are used to convert parallel data into serial format on the transmit side and convert serial data to parallel format on the receiver side. The serial format, in order of transmission and reception, is a start bit, followed by five to eight data bits, a parity bit (if programmed) and one, one and half (fivebit format only) or two stop bits. The UARTs are capable of handling divisors of 1 to 65535 and producing a 16x clock for driving the internal transmitter logic. Provisions are also included to use this 16x clock to drive the receiver logic. The UARTs also support the MIDI data rate. Furthermore, the UARTs also include complete modem control capability and a processor interrupt system that may be software trailed to the computing time required to handle the communication link. The UARTs have a FIFO mode to reduce the number of interrupts presented to the CPU. In each UART, there are 16byte FIFOs for both receive and transmit mode.
6.2
Register Address
6.2.1 UART Control Register (UCR) (Read/Write)
The UART Control Register controls and defines the protocol for asynchronous data communications, including data length, stop bit, parity, and baud rate selection.
- 31 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
7
6
5
4
3
2
1
0
Data length select bit 0 (DLS0) Data length select bit 1(DLS1) Multiple stop bits enable (MSBE) Parity bit enable (PBE) Even parity enable (EPE) Parity bit fixed enable (PBFE) Set silence enable (SSE) Baudrate divisor latch access bit (BDLAB)
Bit 7: BDLAB. When this bit is set to a logical 1, designers can access the divisor (in 16-bit binary format) from the divisor latches of the baudrate generator during a read or write operation. When this bit is reset, the Receiver Buffer Register, the Transmitter Buffer Register, or the Interrupt Control Register can be accessed. Bit 6: SSE. A logical 1 forces the Serial Output (SOUT) to a silent state (a logical 0). Only IRTX is affected by this bit; the transmitter is not affected. Bit 5: PBFE. When PBE and PBFE of UCR are both set to a logical 1, (1) if EPE is logical 1, the parity bit is fixed as logical 0 to transmit and check. (2) if EPE is logical 0, the parity bit is fixed as logical 1 to transmit and check. TABLE 6-1 UART Register Bit Map
BIT NUMBER
Register Address Base 0 1 2 3 4 5 6 7
+0 BDLAB = 0 +0 BDLAB = 0
Receiver Buffer Register (Read Only) Transmitter Buffer Register (Write Only) Interrupt Control Register Interrupt Status Register (Read Only) UART FIFO Control Register (Write Only)
RBR
RX Data RX Data Bit 1 Bit 0
RX Data Bit 2
RX Data Bit 3
RX Data Bit 4
RX Data RX Data RX Data Bit 7 Bit 6 Bit 5
TBR
TX Data Bit 0
TX Data Bit 1
TX Data Bit 2 USR Interrupt Enable (EUSRI) Interrupt Status Bit (1) XMIT FIFO Reset
TX Data Bit 3 HSR Interrupt Enable (EHSRI) Interrupt Status Bit (2)** DMA Mode Select
TX Data Bit 4
TX Data Bit 5
TX Data Bit 6
TX Data Bit 7
+1 BDLAB = 0
ICR
RBR Data TBR Ready Empty Interrupt Interrupt Enable Enable (ERDRI) (ETBREI) "0" if Interrupt Pending Interrupt Status Bit (0) RCVR FIFO Reset
0
0
0
0
+2
ISR
0
0
FIFOs Enabled ** RX Interrupt Active Level (LSB)
FIFOs Enabled ** RX Interrupt Active Level (MSB)
+2
UFR
FIFO Enable
Reserved Reversed
-32-
W83627SF
TABLE 6-1 UART Register Bit Map , continued
BIT NUMBER
Register Address Base 0 1 2 3 4 5 6 7
+3
UART Control UCR Register
Data Length Select Bit 0 (DLS0) Data Terminal Ready (DTR)
Data Length Select Bit 1 (DLS1)
Multiple Stop Bits Enable (MSBE)
Parity Bit Enable (PBE)
Even Parity Enable (EPE) Internal Loopback Enable Silent Byte Detected (SBD) Clear to Send (CTS) Bit 4 Bit 4
Parity Bit Fixed Enable PBFE)
Set Silence Enable (SSE)
Baudrate Divisor Latch Access Bit (BDLAB) 0 RX FIFO Error Indication (RFEI) ** Data Carrier Detect (DCD) Bit 7 Bit 7
+4
Handshake Control Register UART Status Register Handshake Status Register User Defined Register Baudrate Divisor Latch Low Baudrate Divisor Latch High
HCR
Request Loopback to RI Send Input (RTS) Parity Bit Error (PBER)
IRQ Enable No Stop Bit Error (NSER)
0
0
+5
RBR Data Overrun Ready Error USR (RDR) (OER) CTS Toggling (TCTS) Bit 0 Bit 0
TBR Empty (TBRE) Data Set Ready (DSR) Bit 5 Bit 5
TSR Empty (TSRE) Ring Indicator (RI) Bit 6 Bit 6
+6
HSR
DSR RI Falling DCD Toggling Edge Toggling (TDSR) (FERI) (TDCD) Bit 1 Bit 1 Bit 2 Bit 2 Bit 3 Bit 3
+7 +0 BDLAB = 1 +1 BDLAB = 1
UDR BLL
BHL
Bit 8
Bit 9
Bit 10
Bit 11
Bit 12
Bit 13
Bit 14
Bit 15
*: Bit 0 is the least significant bit. The least significant bit is the first bit serially transmitted or received. **: These bits are always 0 in 16450 Mode.
Bit 4: EPE. This bit describes the number of logic 1's in the data word bits and parity bit only when bit 3 is programmed. When this bit is set, an even number of logic 1's are sent or checked. When the bit is reset, an odd number of logic 1's are sent or checked. Bit 3: PBE. When this bit is set, the position between the last data bit and the stop bit of the SOUT will be stuffed with the parity bit at the transmitter. For the receiver, the parity bit in the same position as the transmitter will be detected. Bit 2: MSBE. This bit defines the number of stop bits in each serial character that is transmitted or received. (1) If MSBE is set to a logical 0, one stop bit is sent and checked. (2) If MSBE is set to a logical 1, and data length is 5 bits, one and a half stop bits are sent and checked. (3) If MSBE is set to a logical 1, and data length is 6, 7, or 8 bits, two stop bits are sent and checked. Bits 0 and 1: DLS0, DLS1. These two bits define the number of data bits that are sent or checked in each serial character.
- 33 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
TABLE 6-2 WORD LENGTH DEFINITION
DLS1 DLS0 DATA LENGTH
0 0 1 1
0 1 0 1
5 bits 6 bits 7 bits 8 bits
6.2.2 UART Status Register (USR) (Read/Write)
This 8-bit register provides information about the status of the data transfer during communication.
7
6
5
4
3
2
1
0
RBR Data ready (RDR) Overrun error (OER) Parity bit error (PBER) No stop bit error (NSER) Silent byte detected (SBD) Transmitter Buffer Register empty (TBRE) Transmitter Shift Register empty (TSRE) RX FIFO Error Indication (RFEI)
Bit 7: RFEI. In 16450 mode, this bit is always set to a logic 0. In 16550 mode, this bit is set to a logic 1 when there is at least one parity bit error, no stop bit error or silent byte detected in the FIFO. In 16550 mode, this bit is cleared by reading from the USR if there are no remaining errors left in the FIFO. Bit 6: TSRE. In 16450 mode, when TBR and TSR are both empty, this bit will be set to a logical 1. In 16550 mode, if the transmit FIFO and TSR are both empty, it will be set to a logical 1. Other thanthese two cases, this bit will be reset to a logical 0. Bit 5: TBRE. In 16450 mode, when a data character is transferred from TBR to TSR, this bit will be set to a logical 1. If ETREI of ICR is a logical 1, an interrupt will be generated to notify the CPU to write the next data. In 16550 mode, this bit will be set to a logical 1 when the transmit FIFO is empty. It will be reset to a logical 0 when the CPU writes data into TBR or FIFO. Bit 4: SBD. This bit is set to a logical 1 to indicate that received data are kept in silent state for a full word time, including start bit, data bits, parity bit, and stop bits. In 16550 mode, it indicates the same condition for the data on top of the FIFO. When the CPU reads USR, it will clear this bit to a logical 0. Bit 3: NSER. This bit is set to a logical 1 to indicate that the received data have no stop bit. In 16550 mode, it indicates the same condition for the data on top of the FIFO. When the CPU reads USR, it will clear this bit to a logical 0. Bit 2: PBER. This bit is set to a logical 1 to indicate that the parity bit of received data is wrong. In 16550 mode, it indicates the same condition for the data on top of the FIFO. When the CPU reads USR, it will clear this bit to a logical 0. -34-
W83627SF
Bit 1: OER. This bit is set to a logical 1 to indicate received data have been overwritten by the next received data before they were read by the CPU. In 16550 mode, it indicates the same condition instead of FIFO full. When the CPU reads USR, it will clear this bit to a logical 0. Bit 0: RDR. This bit is set to a logical 1 to indicate received data are ready to be read by the CPU in the RBR or FIFO. After no data are left in the RBR or FIFO, the bit will be reset to a logical 0.
6.2.3 Handshake Control Register (HCR) (Read/Write)
This register controls the pins of the UART used for handshaking peripherals such as modem, and controls the diagnostic mode of the UART.
7 0
6 0
5 0
4
3
2
1
0
Data terminal ready (DTR) Request to send (RTS) Loopback RI input IRQ enable Internal loopback enable
Bit 4: When this bit is set to a logical 1, the UART enters diagnostic mode by an internal loopback, as follows: (1) SOUT is forced to logical 1, and SIN is isolated from the communication link instead of the TSR. (2) Modem output pins are set to their inactive state. (3) Modem input pins are isolated from the communication link and connect internally as DTR (bit 0 of HCR) DSR, RTS ( bit 1 of HCR) CTS, Loopback RI input ( bit 2 of HCR)
RI and IRQ enable ( bit 3 of HCR) DCD .
Aside from the above connections, the UART operates normally. This method allows the CPU to test the UART in a convenient way. Bit 3: The UART interrupt output is enabled by setting this bit to a logic 1. In the diagnostic mode this bit is internally connected to the modem control input DCD . Bit 2: This bit is used only in the diagnostic mode. connected to the modem control input RI . Bit 1: This bit controls the RTS output. The value of this bit is inverted and output to RTS . Bit 0: This bit controls the DTR output. The value of this bit is inverted and output to DTR . In the diagnostic mode this bit is internally
- 35 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
6.2.4 Handshake Status Register (HSR) (Read/Write)
This register reflects the current state of four input pins for handshake peripherals such as a modem and records changes on these pins.
7 6 5 4 3 2 1 0
CTS toggling (TCTS) DSR toggling (TDSR) RI falling edge (FERI) DCD toggling (TDCD) Clear to send (CTS) Data set ready (DSR) Ring indicator (RI) Data carrier detect (DCD)
Bit 7: This bit is the opposite of the DCD input. This bit is equivalent to bit 3 of HCR in loopback mode. Bit 6: This bit is the opposite of the RI input. This bit is equivalent to bit 2 of HCR in loopback mode. Bit 5: This bit is the opposite of the DSR input. This bit is equivalent to bit 0 of HCR in loopback mode. Bit 4: This bit is the opposite of the CTS input. This bit is equivalent to bit 1 of HCR in loopback mode. Bit 3: TDCD. This bit indicates that the DCD pin has changed state after HSR was read by the CPU. Bit 2: FERI. This bit indicates that the RI pin has changed from low to high state after HSR was read by the CPU.
Bit 1: TDSR. This bit indicates that the DSR pin has changed state after HSR was read by the CPU. Bit 0: TCTS. This bit indicates that the CTS pin has changed state after HSR was read.
-36-
W83627SF
6.2.5 UART FIFO Control Register (UFR) (Write only)
This register is used to control the FIFO functions of the UART.
7 6 5 4 3 2 1 0
FIFO enable Receiver FIFO reset Transmitter FIFO reset DMA mode select Reserved Reserved RX interrupt active level (LSB) RX interrupt active level (MSB)
Bit 6, 7: These two bits are used to set the active level for the receiver FIFO interrupt. For example, if the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the receiver FIFO, the interrupt will be activated to notify the CPU to read the data from the FIFO. TABLE 6-3 FIFO TRIGGER LEVEL
BIT 7 BIT 6 RX FIFO INTERRUPT ACTIVE LEVEL (BYTES)
0 0 1 1 Bit 4, 5: Reserved Bit 3:
0 1 0 1
01 04 08 14
When this bit is programmed to logic 1, the DMA mode will change from mode 0 to mode 1 if UFR bit 0 = 1.
Bit 2: Setting this bit to a logical 1 resets the TX FIFO counter logic to initial state. This bit will clear to a logical 0 by itself after being set to a logical 1. Bit 1: Setting this bit to a logical 1 resets the RX FIFO counter logic to initial state. This bit will clear to a logical 0 by itself after being set to a logical 1. Bit 0: This bit enables the 16550 (FIFO) mode of the UART. This bit should be set to a logical 1 before other bits of UFR are programmed.
- 37 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
6.2.6 Interrupt Status Register (ISR) (Read only)
This register reflects the UART interrupt status, which is encoded by different interrupt sources into 3 bits.
7 6 5 0 4 0 0 if interrupt pending Interrupt Status bit 0 Interrupt Status bit 1 Interrupt Status bit 2 FIFOs enabled FIFOs enabled 3 2 1 0
Bit 7, 6: These two bits are set to a logical 1 when UFR bit 0 = 1. Bit 5, 4: These two bits are always logic 0. Bit 3: In 16450 mode, this bit is 0. In 16550 mode, both bit 3 and 2 are set to a logical 1 when a timeout interrupt is pending. Bit 2, 1: These two bits identify the priority level of the pending interrupt, as shown in the table below. Bit 0: This bit is a logical 1 if there is no interrupt pending. If one of the interrupt sources has occurred, this bit will be set to a logical 0. TABLE 6-4 INTERRUPT CONTROL FUNCTION
BIT 3 ISR BIT BIT 2 1 BIT 0 INTERRUPT PRIORITY INTERRUPT SET AND FUNCTION INTERRUPT INTERRUPT SOURCE TYPE CLEAR INTERRUPT
0 0
0 1
0 1
1 0
First
UART Receive Status RBR Data Ready
No Interrupt pending 1. OER = 1 2. PBER =1 3. NSER = 1 4. SBD = 1 1. RBR data ready 2. FIFO interrupt active level reached Data present in RX FIFO for 4 characters period of time since last access of RX FIFO.
Read USR 1. Read RBR 2. Read RBR until FIFO data under active level Read RBR 1. Write data into TBR 2. Read ISR if priority is third)
0
1
0
0
Second
1
1
0
0
Second
FIFO Data Timeout
0
0
1
0
Third
TBR Empty
TBR empty
0
0
0
0
Fourth
Handshake status
1. TCTS = 1 3. FERI = 1
2. TDSR = 1 4. TDCD = 1
Read HSR
** Bit 3 of ISR is enabled when bit 0 of UFR is logical 1.
-38-
W83627SF
6.2.7 Interrupt Control Register (ICR) (Read/Write)
This 8-bit register allows the five types of controller interrupts to activate the interrupt output signal separately. The interrupt system can be totally disabled by resetting bits 0 through 3 of the Interrupt Control Register (ICR). A selected interrupt can be enabled by setting the appropriate bits of this register to a logical 1.
7 0
6 0
5 0
4 0
3
2
1
0
RBR data ready interrupt enable (ERDRI) TBR empty interrupt enable (ETBREI) UART receive status interrupt enable (EUSRI) Handshake status interrupt enable (EHSRI)
Bit 7-4: These four bits are always logic 0. Bit 3: EHSRI. Setting this bit to a logical 1 enables the handshake status register interrupt. Bit 2: EUSRI. Setting this bit to a logical 1 enables the UART status register interrupt. Bit 1: ETBREI. Setting this bit to a logical 1 enables the TBR empty interrupt. Bit 0: ERDRI. Setting this bit to a logical 1 enables the RBR data ready interrupt.
6.2.8 Programmable Baud Generator (BLL/BHL) (Read/Write)
Two 8-bit registers, BLL and BHL, compose a programmable baud generator that uses 24 MHz to generate a 1.8461 MHz frequency and divides it by a divisor from 1 to 2 -1. The output frequency of the baud generator is the baud rate multiplied by 16, and this is the base frequency for the transmitter and receiver. The table in the next page illustrates the use of the baud generator with a frequency of 1.8461 MHz. In high-speed UART mode (refer to CR0C bit7 and CR0C bit6), the programmable baud generator directly uses 24 MHz and the same divisor as the normal speed divisor. In high-speed mode, the data transmission rate can be as high as 1.5M bps.
16
- 39 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
6.2.9 User-defined Register (UDR) (Read/Write)
This is a temporary register that can be accessed and defined by the user. TABLE 6-5 BAUD RATE TABLE
BAUD RATE FROM DIFFERENT PRE-DIVIDER PRE-DIV: 13 1.8461M HZ PRE-DIV:1.625 14.769M HZ PRE-DIV: 1.0 24M HZ DECIMAL DIVISOR USED TO GENERATE 16X CLOCK ERROR PERCENTAGE BETWEEN DESIRED AND ACTUAL
50 75 110 134.5 150 300 600 1200 1800 2000 2400 3600 4800 7200 9600 19200 38400 57600 115200
400 600 880 1076 1200 2400 4800 9600 14400 16000 19200 28800 38400 57600 76800 153600 307200 460800 921600
650 975 1430 1478.5 1950 3900 7800 15600 23400 26000 31200 46800 62400 93600 124800 249600 499200 748800 1497600
2304 1536 1047 857 768 384 192 96 64 58 48 32 24 16 12 6 3 2 1
** ** 0.18% 0.099% ** ** ** ** ** 0.53% ** ** ** ** ** ** ** ** **
** The percentage error for all baud rates, except where indicated otherwise, is 0.16%.
Note. Pre-Divisor is determined by CRF0 of UART A and B.
-40-
W83627SF
7. CIR RECEIVER PORT
7.1 CIR Registers
7.1.1 Bank0.Reg0 - Receiver Buffer Registers (RBR) (Read)
Receiver Buffer Register is read only. When the CIR pulse train has been detected and passed by the internal signal filter, the data sampled and shifted into shifter register will write into Receiver Buffer Register. In the CIR, this port is only supports PIO mode and the address port is defined in the PnP.
7.1.2 Bank0.Reg1 - Interrupt Control Register (ICR)
Power on default <7:0> = 00000000 binary Bit 7 6-3 2 1 0 Name EN_GLBI Reserved EN_TMR_I En_LSR_I EN_RX_I Read/Write Read/Write Read/Write Read/Write Read/Write Description Enable Global Interrupt. Write 1, enable interrupt. Write 0, disable global interrupt. Reserved Enable Timer Interrupt. Enable Line-Status-Register interrupt. Receiver Thershold-Level Interrupt Enable.
7.1.3 Bank0.Reg2 - Interrupt Status Register (ISR)
Power on default <7:0> = 00000000 binary Bit 7-3 Name Reserved Read/Write Reserved Timer Interrupt. Set to 1 when timer count to 0. This bit will be affected by (1) the timer registers are defined in Bank4.Reg0 and Bank1.Reg0~1, (2) EN_TMR(Enable Timer, in Bank0.Reg3.Bit2) should be set to 1, (3) ENTMR_I (Enable Timer Interrupt, in Bank0.Reg1.Bit2) should be set to 1. Line-Status-Register interrupt. Set to 1 when overrun, or parity bit, or stop bit, or silent byte detected error in the Line Status Register (LSR) sets to 1. Clear to 0 when LSR is read. Receiver Thershold-Level Interrupt. Set to 1 when (1) the Receiver Buffer Register (RBR) is equal or larger than the threshold level, (2) RBR occurs time-out if the receiver buffer register has valid data and below the threshold level. Clear to 0 when RBR is less than threshold level from reading RBR. Description
2
TMR_I
Read Only
1
LSR_I
Read Only
0
RXTH_I
Read Only
- 41 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
7.1.4 Bank0~3.Reg3 - CIR Control Register 0/Bank Select Register (CTR0/BSR) (BANK0~3)
Power on default <7:0> = 00000000 binary
BIT NAME READ/WRITE DESCRIPTION
Bank Select Register. These two bits are shared same address so that Bank Select Register (BSR) can be programmed to desired Bank in any Bank. 7-6 BNK_SEL<1:0> Read/Write BNK_SEL<1:0> = 00 Select Bank 0. BNK_SEL<1:0> = 01 Select Bank 1. BNK_SEL<1:0> = Reserved. BNK_SEL<1:0> = Reserved. Receiver FIFO Threshold Level. It is to determine the RXTH_I to become 1 when the Receiver FIFO Threshold Level is equal or larger than the defined value shown as follow. 5-4 RXFTL1/0 Read/Write RXFTL<1:0> = 00 -- 1 byte RXFTL<1:0> = 01 -- 4 bytes RXFTL<1:0> = 10 -- 8 bytes RXFTL<1:0> = 11 -- 14 bytes 3 2 1 TMR_TST EN_TMR RXF_RST Read/Write Read/Write Read/Write Timer Test. Write to 1, then reading the TMRL/TMRH will return the programmed values of TMRL/TMRH, that is, does not return down count counter value. This bit is for test timer register. Enable timer. Write to 1, enable the timer Setting this bit to a logical 1 resets the RX FIFO counter logic to initial state. This bit will clear to a logical 0 by itself after being set to a logical 1. Timer input clock. Winbond test register
0
TMR_CLK
Read/Write
7.1.5 Bank0.Reg4 - CIR Control Register (CTR)
Power on default <7:0> = 0010,1001 binary
BIT NAME READ/WRITE DESCRIPTION
7-5
RX_FR<2:0>
Read/Write
4-0
RX_FSL<4:0>
Read/Write
Receiver Frequency Range 2~0. These bits select the input frequency of the receiver ranges. For the input signal, that is through a band pass filter, i.e., the frequency of the input signal is located at this defined range then the signal will be received. Receiver Frequency Select 4~0. Select the receiver operation frequency.
-42-
W83627SF
Table: Low Frequency range select of receiver.
RX_FR2~0 (LOW FREQUENCY) 001 RX_FSL4~0 MIN. MAX. MIN. 010 MAX. MIN. 011 MAX.
00010 00011 00100 00101 00110 00111 01000 01001 01011 01100 01101 01111 10000 10010 10011 10101 10111 11010 11011 11101
26.1 28.2 29.4 30.0 31.4 32.1 32.8 33.6* 34.4 36.2 37.2 38.2 40.3 41.5 42.8 44.1 45.5 48.7 50.4 54.3
29.6 32.0 33.3 34.0 35.6 36.4 37.2 38.1* 39.0 41.0 42.1 43.2 45.7 47.1 48.5 50.0 51.6 55.2 57.1 61.5
24.7 26.7 27.8 28.4 29.6 30.3 31.0 31.7 32.5 34.2 35.1 36.0 38.1 39.2 40.4 41.7 43.0 46.0 47.6 51.3
31.7 34.3 35.7 36.5 38.1 39.0 39.8 40.8 41.8 44.0 45.1 46.3 49.0 50.4 51.9 53.6 55.3 59.1 61.2 65.9
23.4 25.3 26.3 26.9 28.1 28.7 29.4 30.1 30.8 32.4 33.2 34.1 36.1 37.2 38.3 39.5 40.7 43.6 45.1 48.6
34.2 36.9 38.4 39.3 41.0 42.0 42.9 44.0 45.0 47.3 48.6 49.9 52.7 54.3 56.0 57.7 59.6 63.7 65.9 71.0
Note that the other non-defined values are reserved.
7.1.6 Bank0.Reg5 - UART Line Status Register (USR)
Power on default <7:0> = 0000,0000 binary
BIT NAME READ/WRITE DESCRIPTION
7-3 2 1 0
Reserved RX_TO OV_ERR RDR
Read/Write Read/Write Read/Write
Set to 1 when receiver FIFO or frame status FIFO occurs time-out. Read this bit will be cleared. Received FIFO overrun. Read to clear. This bit is set to a logical 1 to indicate received data are ready to be read by the CPU in the RBR or FIFO. After no data are left in the RBR or FIFO, the bit will be reset to a logical 0.
- 43 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
7.1.7 Bank0.Reg6 - Remote Infrared Config Register (RIR_CFG)
Power on default <7:0> = 0000,0000 binary
BIT NAME READ/WRITE DESCRIPTION
Sampling Mode Select. Select internal decoder methodology from the internal filter. Selected decoder mode will determine the receive data format. The sampling mode is shown as bellow: SMPSEL<1:0> = 00 T-Period Sample Mode. SMPSEL<1:0> = 01 Over-Sampling Mode. SMPSEL<1:0> = 10 Over-Sampling with re-sync. SMPSEL<1:0> = 11 FIFO Test Mode. The T-period code format is defined as follows. 7-6 SMPSEL<1:0> Read/Write
(Number of bits) - 1
B7 B6 B5 B4 B3 B2 B1 B0
Bit value
5-4
LP_SL<1:0>
Read/Write
3-2
RXDMSL<1:0>
Read/Write
1
PRE_DIV
Read/Write
0
RXINV
Read/Write
The Bit value is set to 0, then the high pulse will be received. The Bit value is set to 1, then no energy will be received. The opposite results will be generated when the bit RXINV (Bank0.Reg6.Bit0) is set to 1. Low pass filter source selection. LP_SL<1:0> = 00 Select raw IRRX signal. LP_SL<1:0> = 01 Select R.B.P. signal LP_SL<1:0> = 10 Select D.B.P. signal. LP_SL<1:0> = 11 Reserved. Receiver Demodulation Source Selection. RXDMSL<1:0> = 00 select B.P. and L.P. filter. RXDMSL<1:0> = 01 select B.P. but not L.P. RXDMSL<1:0> = 10 Reserved. RXDMSL<1:0> = 11 do not pass demodulation. Baud Rate Pre-divisor. Set to 1, the baud rate generator input clock is set to 1.8432M Hz which is set to predivisor into 13. When set to 0, the pre-divisor is set to 1, that is, the input clock of baud rate generator is set to 24M Hz. Receiving Signal Invert. Write to 1, Invert the receiving signal.
-44-
W83627SF
7.1.8 Bank0.Reg7 - User Defined Register (UDR/AUDR)
Power on default <7:0> = 0000,0000 binary
BIT NAME READ/WRITE DESCRIPTION
7
RXACT
Read/Write
Receive Active. Set to 1 whenever a pulse or pulsetrain is detected by the receiver. If a 1 is written into the bit position, the bit is cleared and the receiver is deactived. When this bit is set, the receiver samples the IR input continuously at the programmed baud rate and transfers the data to the receiver FIFO. Set to 1 whenever a pulse or pulse-train (modulated pulse) is detected by the receiver. Can be used by the software to detect idle condition Cleared Upon Read. FIFO Level Value. Indicate that how many bytes are there in the current received FIFO. Can read these bits then get the FIFO level value and successively read RBR by the prior value.
6
RX_PD
Read Only
5 4-0
Reserved FOLVAL
Read Only
7.1.9 Bank1.Reg0~1 - Baud Rate Divisor Latch (BLL/BHL)
The two registers of BLL and BHL are baud rate divisor latch in the legacy UART/SIR/ASK-IR mode. Read/Write these registers, if set in Advanced UART mode, will occur backward operation, that is, will go to legacy UART mode and clear some register values shown table as follows. TABLE: BAUD RATE TABLE
BAUD RATE USING 24 MHZ TO GENERATE 1.8461 MHZ DESIRED BAUD RATE DECIMAL DIVISOR USED TO GENERATE 16X CLOCK PERCENT ERROR DIFFERENCE BETWEEN DESIRED AND ACTUAL
50 75 110 134.5 150 300 600 1200 1800 2000 2400
2304 1536 1047 857 768 384 192 96 64 58 48
** ** 0.18% 0.099% ** ** ** ** ** 0.53% **
- 45 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
TABLE: BAUD RATE TABLE, continued
BAUD RATE USING 24 MHZ TO GENERATE 1.8461 MHZ DESIRED BAUD RATE DECIMAL DIVISOR USED TO GENERATE 16X CLOCK PERCENT ERROR DIFFERENCE BETWEEN DESIRED AND ACTUAL
3600 4800 7200 9600 19200 38400 57600 115200 1.5M 1
32 24 16 12 6 3 2 1
Note 1
** ** ** ** ** ** ** ** 0%
Note 1: Only use in high speed mode, when Bank0.Reg6.Bit7 is set.
** The percentage error for all baud rates, except where indicated otherwise, is 0.16%
7.1.10 Bank1.Reg2 - Version ID Register I (VID)
Power on default <7:0> = 0001,0000 binary
BIT NAME READ/WRITE DESCRIPTION
7-0
VID
Read Only
Version ID, default is set to 0x10.
7.1.11 Bank0~3.Reg3 - CIR Control Register 0/Bank Select Register (CTR0/BSR) (BANK0~3)
This register is defined same as in Bank0.Reg3.
7.1.12 Bank1.Reg4 - Timer Low Byte Register (TMRL)
Power on default <7:0> = 0000,0000 binary
BIT NAME READ/WRITE DESCRIPTION
7-0
TMRL
Read/Write
Timer Low Byte Register. This is a 12-bit timer (another 4-bit is defined in Bank1.Reg5) which resolution is 1 ms, that is, the programmed maximum time is 212-1 ms. The timer is a down-counter. The timer start down count when the bit EN_TMR (Enable Timer) of Bank0.Reg2. is set to 1. When the timer down count to zero and EN_TMR=1, the TMR_I is set to 1. When the counter down count to zero, a new initial value will be re-loaded into timer counter.
-46-
W83627SF
7.1.13 Bank1.Reg5 - Timer High Byte Register (TMRH)
Power on default <7:0> = 0000,0000 binary
BIT NAME READ/WRITE DESCRIPTION
7-4 3-0
Reserved TMRH Read/Write
Reserved. Timer High Byte Register. See Bank1.Reg4.
8. PARALLEL PORT
8.1 Printer Interface Logic
The parallel port of the W83627SF makes possible the attachment of various devices that accept eight bits of parallel data at standard TTL level. The W83627SF supports an IBM XT/AT compatible parallel port (SPP), bi-directional parallel port (BPP), Enhanced Parallel Port (EPP), Extended Capabilities Parallel Port (ECP), Extension FDD mode (EXTFDD), Extension 2FDD mode (EXT2FDD) on the parallel port. Refer to the configuration registers for more information on disabling, power-down, and on selecting the mode of operation. Table 8-1 (including Table 6-1-1 and 6-1-2) shows the pin definitions for different modes of the parallel port. TABLE 8-1-1 PARALLEL PORT CONNECTOR AND PIN DEFINITIONS
HOST CONNECTOR PIN NUMBER OF W83627SF PIN ATTRIBUTE SPP EPP ECP
1 2-9 10 11 12 13 14 15 16 17
Notes:
36 31-26, 24-23 22 21 19 18 35 34 33 32
O I/O I I I I O I O O
nSTB PD<0:7 > nACK BUSY PE SLCT nAFD nERR nINIT nSLIN
nWrite PD<0:7> Intr nWait PE Select nDStrb nError nInit nAStrb
nSTB, HostClk2 PD<0:7> nACK, PeriphClk2 BUSY, PeriphAck2 PEerror, nAckReverse2 SLCT, Xflag2 nAFD, HostAck2 nFault1, nPeriphRequest2 nINIT1, nReverseRqst2 nSLIN1 , ECPMode2
n : Active Low 1. Compatible Mode 2. High Speed Mode 3. For more information, refer to the IEEE 1284 standard.
- 47 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
TABLE 8-1-2 PARALLEL PORT CONNECTOR AND PIN DEFINITIONS
HOST CONNECTOR PIN NUMBER OF W83627SF PIN ATTRIBUTE SPP PIN ATTRIBUTE EXT2FDD PIN ATTRIBUTE EXTFDD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
36 31 30 29 28 27 26 24 23 22 21 19 18 35 34 33 32
O I/O I/O I/O I/O I/O I/O I/O I/O I I I I O I O O
nSTB PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 nACK BUSY PE SLCT nAFD nERR nINIT nSLIN
--I I I I I --OD OD OD OD OD OD OD OD OD OD
--INDEX2# TRAK02# WP2# RDATA2# DSKCHG2# --MOA2# DSA2# DSB2# MOB2# WD2# WE2# RWC2# HEAD2# DIR2# STEP2#
--I I I I I ------OD OD OD OD OD OD OD OD
--INDEX2# TRAK02# WP2# RDATA2# DSKCHG2# ------DSB2# MOB2# WD2# WE2# RWC2# HEAD2# DIR2# STEP2#
8.2
Enhanced Parallel Port (EPP)
TABLE 8-2 PRINTER MODE AND EPP REGISTER ADDRESS
A2 A1 A0 REGISTER NOTE
0 0 0 0 0 1 1 1 1
Notes:
0 0 1 1 1 0 0 1 1
0 1 0 0 1 0 1 0 1
Data port (R/W) Printer status buffer (Read) Printer control latch (Write) Printer control swapper (Read) EPP address port (R/W) EPP data port 0 (R/W) EPP data port 1 (R/W) EPP data port 2 (R/W) EPP data port 2 (R/W)
1 1 1 1 2 2 2 2 2
1. These registers are available in all modes. 2. These registers are available only in EPP mode.
-48-
W83627SF
8.2.1 Data Swapper
The system microprocessor can read the contents of the printer's data latch by reading the data swapper.
8.2.2 Printer Status Buffer
The system microprocessor can read the printer status by reading the address of the printer status buffer. The bit definitions are as follows:
7
6
5
4
3
2 1
1 1
0
TMOUT ERROR SLCT PE ACK BUSY
Bit 7: This signal is active during data entry, when the printer is off-line during printing, when the print head is changing position, or during an error state. When this signal is active, the printer is busy and cannot accept data. Bit 6: This bit represents the current state of the printer's ACK# signal. A 0 means the printer has received a character and is ready to accept another. Normally, this signal will be active for approximately 5 microseconds before BUSY# stops. Bit 5: Logical 1 means the printer has detected the end of paper. Bit 4: Logical 1 means the printer is selected. Bit 3: Logical 0 means the printer has encountered an error condition. Bit 1, 2: These two bits are not implemented and are logic one during a read of the status register. Bit 0: This bit is valid in EPP mode only. It indicates that a 10 S time-out has occurred on the EPP bus. A logic 0 means that no time-out error has occurred; a logic 1 means that a time-out error has been detected. Writing a logic 1 to this bit will clear the time-out status bit; writing a logic 0 has no effect.
8.2.3 Printer Control Latch and Printer Control Swapper
The system microprocessor can read the contents of the printer control latch by reading the printer control swapper. Bit definitions are as follows:
- 49 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
7 1
6 1
5
4
3
2
1
0
STROBE AUTO FD INIT SLCT IN IRQ ENABLE DIR
Bit 7, 6: These two bits are a logic one during a read. They can be written. Bit 5: Direction control bit When this bit is a logic 1, the parallel port is in input mode (read); when it is a logic 0, the parallel port is in output mode (write). This bit can be read and written. In SPP mode, this bit is invalid and fixed at zero. Bit 4: A 1 in this position allows an interrupt to occur when ACK# changes from low to high. Bit 3: A 1 in this bit position selects the printer. Bit 2: A 0 starts the printer (50 microsecond pulse, minimum). Bit 1: A 1 causes the printer to line-feed after a line is printed. Bit 0: A 0.5 microsecond minimum high active pulse clocks data into the printer. Valid data must be present for a minimum of 0.5 microseconds before and after the strobe pulse.
8.2.4 EPP Address Port
The address port is available only in EPP mode. Bit definitions are as follows:
7 6 5 4 3 2 1 0
PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7
The contents of DB0-DB7 are buffered (non-inverting) and output to ports PD0-PD7 during a write operation. The leading edge of IOW# causes an EPP address write cycle to be performed, and the trailing edge of IOW# latches the data for the duration of the EPP write cycle. PD0-PD7 ports are read during a read operation. The leading edge of IOR# causes an EPP address read cycle to be performed and the data to be output to the host CPU.
-50-
W83627SF
8.2.5 EPP Data Port 0-3
These four registers are available only in EPP mode. Bit definitions of each data port are as follows:
7 6 5 4 3 2 1 0
PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7
When accesses are made to any EPP data port, the contents of DB0-DB7 are buffered (non-inverting) and output to the ports PD0-PD7 during a write operation. The leading edge of IOW# causes an EPP data write cycle to be performed, and the trailing edge of IOW# latches the data for the duration of the EPP write cycle. During a read operation, ports PD0-PD7 are read, and the leading edge of IOR# causes an EPP read cycle to be performed and the data to be output to the host CPU.
8.2.6 Bit Map of Parallel Port and EPP Registers
REGISTER 7
PD7 BUSY# 1 1 PD7 PD7 PD7 PD7 PD7
6
PD6 ACK# 1 1 PD6 PD6 PD6 PD6 PD6
5
PD5 PE 1 DIR PD5 PD5 PD5 PD5 PD5
4
PD4 SLCT IRQEN IRQ PD4 PD4 PD4 PD4 PD4
3
PD3
2
PD2 1 INIT# INIT# PD2 PD2 PD2 PD2 PD2
1
PD1 1 AUTOFD# AUTOFD# PD1 PD1 PD1 PD1 PD1
0
PD0 TMOUT STROBE# STROBE# PD0 PD0 PD0 PD0 PD0
Data Port (R/W) Status Buffer (Read) Control Swapper (Read) Control Latch (Write) EPP Address Port R/W) EPP Data Port 0 (R/W) EPP Data Port 1 (R/W) EPP Data Port 2 (R/W) EPP Data Port 3 (R/W)
ERROF#
SLIN SLIN PD3 PD3 PD3 PD3 PD3
- 51 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
8.2.7 EPP Pin Descriptions
EPP NAME TYPE EPP DESCRIPTION
nWrite PD<0:7> Intr nWait PE Select nDStrb nError nInits nAStrb
O I/O I I I I O I O O
Denotes an address or data read or write operation. Bi-directional EPP address and data bus. Used by peripheral device to interrupt the host. Inactive to acknowledge that data transfer is completed. Active to indicate that the device is ready for the next transfer. Paper end; same as SPP mode. Printer selected status; same as SPP mode. This signal is active low. It denotes a data read or write operation. Error; same as SPP mode. This signal is active low. When it is active, the EPP device is reset to its initial operating mode. This signal is active low. It denotes an address read or write operation.
8.2.8 EPP Operation
When the EPP mode is selected in the configuration register, the standard and bi-directional modes are also available. The PDx bus is in the standard or bi-directional mode when no EPP read, write, or address cycle is currently being executed. In this condition all output signals are set by the SPP Control Port and the direction is controlled by DIR of the Control Port. A watchdog timer is required to prevent system lockup. The timer indicates that more than 10 S have elapsed from the start of the EPP cycle to the time WAIT# is deasserted. The current EPP cycle is aborted when a time-out occurs. The time-out condition is indicated in Status bit 0. 8.2.8.1 EPP Operation
The EPP operates on a two-phase cycle. First, the host selects the register within the device for subsequent operations. Second, the host performs a series of read and/or write byte operations to the selected register. Four operations are supported on the EPP: Address Write, Data Write, Address Read, and Data Read. All operations on the EPP device are performed asynchronously. 8.2.8.2 EPP Version 1.9 Operation
The EPP read/write operation can be completed under the following conditions: a. If the nWait is active low, when the read cycle (nWrite inactive high, nDStrb/nAStrb active low) or write cycle (nWrite active low, nDStrb/nAStrb active low) starts, the read/write cycle proceeds normally and will be completed when nWait goes inactive high. b. If nWait is inactive high, the read/write cycle will not start. It must wait until nWait changes to active low, at which time it will start as described above. 8.2.8.3 EPP Version 1.7 Operation
The EPP read/write cycle can start without checking whether nWait is active or inactive. Once the read/write cycle starts, however, it will not terminate until nWait changes from active low to inactive high.
-52-
W83627SF
8.3 Extended Capabilities Parallel (ECP) Port
This port is software and hardware compatible with existing parallel ports, so it may be used as a
standard printer mode if ECP is not required. It provides an automatic high burst-bandwidth channel that supports DMA for ECP in both the forward (host to peripheral) and reverse (peripheral to host) directions. Small FIFOs are used in both forward and reverse directions to improve the maximum bandwidth requirement. The size of the FIFO is 16 bytes. The ECP port supports an automatic handshake for the standard parallel port to improve compatibility mode transfer speed. The ECP port supports run-length-encoded (RLE) decompression (required) in hardware. Compression is accomplished by counting identical bytes and transmitting an RLE byte that indicates how many times the next byte is to be repeated. Hardware support for compression is optional. For more information about the ECP Protocol, refer to the Extended Capabilities Port Protocol and ISA Interface Standard.
8.3.1 ECP Register and Mode Definitions
NAME ADDRESS I/O ECP MODES FUNCTION
data ecpAFifo dsr dcr cFifo ecpDFifo tFifo cnfgA cnfgB ecr
Base+000h Base+000h Base+001h Base+002h Base+400h Base+400h Base+400h Base+400h Base+401h Base+402h
R/W R/W R R/W R/W R/W R/W R R/W R/W
000-001 011 All All 010 011 110 111 111 All
Data Register ECP FIFO (Address) Status Register Control Register Parallel Port Data FIFO ECP FIFO (DATA) Test FIFO Configuration Register A Configuration Register B Extended Control Register
Note: The base addresses are specified by CR23, which are determined by configuration register or hardware setting.
MODE
DESCRIPTION
000 001 010 011 100 101 110 111
SPP mode PS/2 Parallel Port mode Parallel Port Data FIFO mode ECP Parallel Port mode EPP mode (If this option is enabled in the CR9 and CR0 to select ECP/EPP mode) Reserved Test mode Configuration mode
Note: The mode selection bits are bit 7-5 of the Extended Control Register.
- 53 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
8.3.2 Data and ecpAFifo Port
Modes 000 (SPP) and 001 (PS/2) (Data Port) During a write operation, the Data Register latches the contents of the data bus on the rising edge of the input. The contents of this register are output to the PD0-PD7 ports. During a read operation, ports PD0-PD7 are read and output to the host. The bit definitions are as follows:
7 6 5 4 3 2 1 0
PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7
Mode 011 (ECP FIFO-Address/RLE) A data byte written to this address is placed in the FIFO and tagged as an ECP Address/RLE. The hardware at the ECP port transmits this byte to the peripheral automatically. The operation of this register is defined only for the forward direction. The bit definitions are as follows:
7 6 5 4 3 2 1 0
Address or RLE
Address/RLE
8.3.3 Device Status Register (DSR)
These bits are at low level during a read of the Printer Status Register. The bits of this status register are defined as follows:
7 6 5 4 3 2 1 1 1 0 1
nFault Select PError nAck nBusy
-54-
W83627SF
Bit 7: This bit reflects the complement of the Busy input. Bit 6: This bit reflects the nAck input. Bit 5: This bit reflects the PError input. Bit 4: This bit reflects the Select input. Bit 3: This bit reflects the nFault input. Bit 2-0: These three bits are not implemented and are always logic one during a read.
8.3.4 Device Control Register (DCR)
The bit definitions are as follows:
7 1
6 1
5
4
3
2
1
0
strobe autofd nInit SelectIn ackIntEn Direction
Bit 6, 7: These two bits are logic one during a read and cannot be written. Bit 5: This bit has no effect and the direction is always out if mode = 000 or mode = 010. Direction is valid in all other modes. 0 the parallel port is in output mode. 1 the parallel port is in input mode. Bit 4: Interrupt request enable. When this bit is set to a high level, it may be used to enable interrupt requests from the parallel port to the CPU due to a low to high transition on the ACK# input. Bit 3: This bit is inverted and output to the SLIN# output. 0 The printer is not selected. 1 The printer is selected. Bit 2: This bit is output to the INIT# output. Bit 1: This bit is inverted and output to the AFD# output. Bit 0: This bit is inverted and output to the STB# output.
- 55 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
8.3.5 cFifo (Parallel Port Data FIFO) Mode = 010
This mode is defined only for the forward direction. The standard parallel port protocol is used by a hardware handshake to the peripheral to transmit bytes written or DMAed from the system to this FIFO. Transfers to the FIFO are byte aligned.
8.3.6 ecpDFifo (ECP Data FIFO) Mode = 011
When the direction bit is 0, bytes written or DMAed from the system to this FIFO are transmitted by a hardware handshake to the peripheral using the ECP parallel port protocol. Transfers to the FIFO are byte aligned. When the direction bit is 1, data bytes from the peripheral are read under automatic hardware handshake from ECP into this FIFO. Reads or DMAs from the FIFO will return bytes of ECP data to the system.
8.3.7 tFifo (Test FIFO Mode) Mode = 110
Data bytes may be read, written, or DMAed to or from the system to this FIFO in any direction. Data in the tFIFO will not be transmitted to the parallel port lines. However, data in the tFIFO may be displayed on the parallel port data lines.
8.3.8 cnfgA (Configuration Register A) Mode = 111
This register is a read-only register. When it is read, 10H is returned. This indicates to the system that this is an 8-bit implementation.
8.3.9
cnfgB (Configuration Register B) Mode = 111
The bit definitions are as follows:
7
6
5
4
3
2 1
1 1
0 1
IRQx 0 IRQx 1 IRQx 2 intrValue compress
Bit 7: This bit is read-only. It is at low level during a read. This means that this chip does not support hardware RLE compression. Bit 6: Returns the value on the ISA IRQ line to determine possible conflicts. Bit 5-3: Reflect the IRQ resource assigned for ECP port.
-56-
W83627SF
CNFGB[5:3] IRQ RESOURCE
000 001 010 011 100 101 110 111
reflect other IRQ resources selected by PnP register (default) IRQ7 IRQ9 IRQ10 IRQ11 IRQ14 IRQ15 IRQ5
Bit 2-0: These five bits are at high level during a read and can be written.
8.3.10 ecr (Extended Control Register) Mode = all
This register controls the extended ECP parallel port functions. The bit definitions are follows:
7 6 5 4 3 2 1 0
empty full service Intr dmaEn nErrIntrEn MODE MODE MODE
Bit 7-5: These bits are read/write and select the mode. 000 001 Standard Parallel Port mode. The FIFO is reset in this mode. PS/2 Parallel Port mode. This is the same as 000 except that direction may be used to tri-state the data lines and reading the data register returns the value on the data lines and not the value in the data register. Parallel Port FIFO mode. This is the same as 000 except that bytes are written or DMAed to the FIFO. FIFO data are automatically transmitted using the standard parallel port protocol. This mode is useful only when direction is 0. ECP Parallel Port Mode. When the direction is 0 (forward direction), bytes placed into the ecpDFifo and bytes written to the ecpAFifo are placed in a single FIFO and auto transmitted to the peripheral using ECP Protocol. When the direction is 1 (reverse direction), bytes are moved from the ECP parallel port and packed into bytes in the ecpDFifo. Selects EPP Mode. In this mode, EPP is activated if the EPP mode is selected. Reserved. Test Mode. The FIFO may be written and read in this mode, but the data will not be transmitted on the parallel port. Configuration Mode. The confgA and confgB registers are accessible at 0x400 and 0x401 in this mode.
010
011
100 101 110 111
- 57 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
Bit 4: Read/Write (Valid only in ECP Mode) 1 0 Disables the interrupt generated on the asserting edge of nFault. Enables an interrupt pulse on the high to low edge of nFault. If nFault is asserted (interrupt) an interrupt will be generated and this bit is written from a 1 to 0. Enables DMA. Disables DMA unconditionally.
Bit 3: Read/Write 1 0
Bit 2: Read/Write 1 Disables DMA and all of the service interrupts. 0 Enables one of the following cases of interrupts. When one of the service interrupts has occurred, the serviceIntr bit is set to a 1 by hardware. This bit must be reset to 0 to reenable the interrupts. Writing a 1 to this bit will not cause an interrupt. (a) dmaEn = 1: During DMA this bit is set to a 1 when terminal count is reached. (b) dmaEn = 0 direction = 0: This bit is set to 1 whenever there are writeIntr Threshold or more bytes free in the FIFO. (c) dmaEn = 0 direction = 1: This bit is set to 1 whenever there are readIntr Threshold or more valid bytes to be read from the FIFO. Bit 1: Read only 0 1 0 1 The FIFO has at least 1 free byte. The FIFO cannot accept another byte or the FIFO is completely full. The FIFO contains at least 1 byte of data. The FIFO is completely empty.
Bit 0: Read only
8.3.11 Bit Map of ECP Port Registers
D7 data ecpAFifo dsr dcr cFifo ecpDFifo tFifo cnfgA cnfgB ecr 0 0 MODE 0 1 compress intrValue PD7 Addr/ RLE nBusy 1 nAck 1 PError Directio D6 PD6 D5 PD5 D4 PD4 D3 PD3 D2 PD2 D1 PD1 D0 PD0 2 1 nInit 1 1 1 1 2 2 2 0 1 dmaEn 0 1 serviceIntr 0 1 full 0 1 empty NOTE
Address or RLE field Select ackIntEn nFault SelectIn
autofd strobe
Parallel Port Data FIFO ECP Data FIFO Test FIFO 1 1 nErrIntrEn
Notes: 1. These registers are available in all modes. 2. All FIFOs use one common 16-byte FIFO.
-58-
W83627SF
8.3.12 ECP Pin Descriptions
NAME TYPE DESCRIPTION
nStrobe (HostClk) PD<7:0> nAck (PeriphClk)
O I/O I
The nStrobe registers data or address into the slave on the asserting edge during write operations. This signal handshakes with Busy. These signals contains address or data or RLE data. This signal indicates valid data driven by the peripheral when asserted. This signal handshakes with nAutoFd in reverse. This signal deasserts to indicate that the peripheral can accept data. It indicates whether the data lines contain ECP command information or data in the reverse direction. When in reverse direction, normal data are transferred when Busy (PeriphAck) is high and an 8-bit command is transferred when it is low. This signal is used to acknowledge a change in the direction of the transfer (asserted = forward). The peripheral drives this signal low to acknowledge nReverseRequest. The host relies upon nAckReverse to determine when it is permitted to drive the data bus. Indicates printer on line. Requests a byte of data from the peripheral when it is asserted. This signal indicates whether the data lines contain ECP address or data in the forward direction. When in forward direction, normal data are transferred when nAutoFd (HostAck) is high and an 8-bit command is transferred when it is low. Generates an error interrupt when it is asserted. This signal is valid only in the forward direction. The peripheral is permitted (but not required) to drive this pin low to request a reverse transfer during ECP Mode. This signal sets the transfer direction (asserted = reverse, deasserted = forward). This pin is driven low to place the channel in the reverse direction. This signal is always deasserted in ECP mode.
Busy (PeriphAck)
I
PError (nAckReverse)
I
Select (Xflag)
I
nAutoFd (HostAck)
O
nFault (nPeriphRequest)
I
nInit (nReverseRequest) nSelectIn (ECPMode)
O O
- 59 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
8.3.13 ECP Operation
The host must negotiate on the parallel port to determine if the peripheral supports the ECP protocol before ECP operation. After negotiation, it is necessary to initialize some of the port bits. The following are required: (a) Set direction = 0, enabling the drivers. (b) Set strobe = 0, causing the nStrobe signal to default to the deasserted state. (c) Set autoFd = 0, causing the nAutoFd signal to default to the deasserted state. (d) Set mode = 011 (ECP Mode) ECP address/RLE bytes or data bytes may be sent automatically by writing the ecpAFifo or ecpDFifo, respectively.
8.3.13.1 Mode Switching
Software will execute P1284 negotiation and all operation prior to a data transfer phase under programmed I/O control (mode 000 or 001). Hardware provides an automatic control line handshake, moving data between the FIFO and the ECP port only in the data transfer phase (mode 011 or 010). If the port is in mode 000 or 001 it may switch to any other mode. If the port is not in mode 000 or 001 it can only be switched into mode 000 or 001. The direction can be changed only in mode 001. When in extended forward mode, the software should wait for the FIFO to be empty before switching back to mode 000 or 001. In ECP reverse mode the software waits for all the data to be read from the FIFO before changing back to mode 000 or 001.
8.3.13.2 Command/Data
ECP mode allows the transfer of normal 8-bit data or 8-bit commands. In the forward direction, normal data are transferred when HostAck is high and an 8-bit command is transferred when HostAck is low. The most significant bits of the command indicate whether it is a run-length count (for compression) or a channel address. In the reverse direction, normal data are transferred when PeriphAck is high and an 8-bit command is transferred when PeriphAck is low. The most significant bit of the command is always zero.
8.3.13.3 Data Compression
The W83627SF supports run length encoded (RLE) decompression in hardware and can transfer compressed data to a peripheral. Note that the odd (RLE) compression in hardware is not supported. In order to transfer data in ECP mode, the compression count is written to the ecpAFifo and the data byte is written to the ecpDFifo.
8.3.14 FIFO Operation
The FIFO threshold is set in configuration register 5. All data transfers to or from the parallel port can proceed in DMA or Programmed I/O (non-DMA) mode, as indicated by the selected mode. The FIFO is used by selecting the Parallel Port FIFO mode or ECP Parallel Port Mode. After a reset, the FIFO is disabled.
-60-
W83627SF
8.3.15 DMA Transfers
DMA transfers are always to or from the ecpDFifo, tFifo, or CFifo. The DMA uses the standard PC DMA services. The ECP requests DMA transfers from the host by activating the PDRQ pin. The DMA will empty or fill the FIFO using the appropriate direction and mode. When the terminal count in the DMA controller is reached, an interrupt is generated and serviceIntr is asserted, which will disable the DMA.
8.3.16 Programmed I/O (NON-DMA) Mode
The ECP or parallel port FIFOs can also be operated using interrupt driven programmed I/O. Programmed I/O transfers are to the ecpDFifo at 400H and ecpAFifo at 000H or from the ecpDFifo located at 400H, or to/from the tFifo at 400H. The host must set the direction, state, dmaEn = 0 and serviceIntr = 0 in the programmed I/O transfers. The ECP requests programmed I/O transfers from the host by activating the IRQ pin. The programmed I/O will empty or fill the FIFO using the appropriate direction and mode.
8.4
Extension FDD Mode (EXTFDD)
In this mode, the W83627SF changes the printer interface pins to FDC input/output pins, allowing the user to install a second floppy disk drive (FDD B) through the DB-25 printer connector. The pin assignments for the FDC input/output pins are shown in Table 8-1-2. After the printer interface is set to EXTFDD mode, the following occur: (1) Pins MOB# and DSB# will be forced to inactive state. (2) Pins DSKCHG#, RDATA#, WP#, TRAK0#, INDEX# will be logically ORed with pins PD4-PD0 to serve as input signals to the FDC. (3) Pins PD4-PD0 each will have an internal resistor of about 1K ohm to serve as pull-up resistor for FDD open drain/collector output. (4) If the parallel port is set to EXTFDD mode after the system has booted DOS or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive.
8.5
Extension 2FDD Mode (EXT2FDD)
In this mode, the W83627SF changes the printer interface pins to FDC input/output pins, allowing the user to install two external floppy disk drives through the DB-25 printer connector to replace internal floppy disk drives A and B. The pin assignments for the FDC input/output pins are shown in Table8-12. After the printer interface is set to EXTFDD mode, the following occur: (1) Pins MOA#, DSA#, MOB#, and DSB# will be forced to inactive state. (2) Pins DSKCHG#, RDATA#, WP#, TRAK0#, and INDEX# will be logically ORed with pins PD4-PD0 to serve as input signals to the FDC. (3) Pins PD4-PD0 each will have an internal resistor of about 1K ohm to serve as pull-up resistor for FDD open drain/collector output. (4) If the parallel port is set to EXT2FDD mode after the system has booted DOS or another operating system, a warm reset is needed to enable the system to recognize the extension floppy drive.
Publication Release Date: May 31, 2005 Revision A1
- 61 -
W83627SF
9. KEYBOARD CONTROLLER
The KBC (8042 with licensed KB BIOS) circuit of W83627SF is designed to provide the functions needed to interface a CPU with a keyboard and/or a PS/2 mouse, and can be used with IBMcompatible personal computers or PS/2-based systems. The controller receives serial data from the keyboard or PS/2 mouse, checks the parity of the data, and presents the data to the system as a byte of data in its output buffer. Then, The controller will asserts an interrupt to the system when data are placed in its output buffer. The keyboard and PS/2 mouse are required to acknowledge all data transmissions. No transmission should be sent to the keyboard or PS/2 mouse until an acknowledge is received for the previous data byte.
P24 P25 P21 KINH P17 P20 P27
KIRQ MIRQ GATEA20 KBRST KDAT KCLK MCLK
8042
GP I/O PINS Multiplex I/O PINS P12~P16
P10 P26 T0 P23 T1 P22 P11
MDAT
Keyboard and Mouse Interface
-62-
W83627SF
9.1 Output Buffer
The output buffer is an 8-bit read-only register at I/O address 60H (Default, PnP programmable I/O address LD5-CR60 and LD5-CR61). The keyboard controller uses the output buffer to send the scan code received from the keyboard and data bytes required by commands to the system. The output buffer can only be read when the output buffer full bit in the register is "1".
9.2
Input Buffer
The input buffer is an 8-bit write-only register at I/O address 60H or 64H (Default, PnP programmable I/O address LD5-CR60, LD5-CR61, LD5-CR62, and LD5-CR63). Writing to address 60H sets a flag to indicate a data write; writing to address 64H sets a flag to indicate a command write. Data written to I/O address 60H is sent to keyboard (unless the keyboard controller is expecting a data byte) through the controller's input buffer only if the input buffer full bit in the status register is "0".
9.3
Status Register
The status register is an 8-bit read-only register at I/O address 64H (Default, PnP programmable I/O address LD5-CR62 and LD5-CR63), that holds information about the status of the keyboard controller and interface. It may be read at any time.
BIT BIT FUNCTION DESCRIPTION
0 1 2 3 4 5 6 7
Output Buffer Full Input Buffer Full System Flag Command/Data Inhibit Switch Auxiliary Device Output Buffer General Purpose Time-out Parity Error
0: Output buffer empty 1: Output buffer full 0: Input buffer empty 1: Input buffer full This bit may be set to 0 or 1 by writing to the system flag bit in the command byte of the keyboard controller. It defaults to 0 after a power-on reset. 0: Data byte 1: Command byte 0: Keyboard is inhibited 1: Keyboard is not inhibited 0: Auxiliary device output buffer empty 1: Auxiliary device output buffer full 0: No time-out error 1: Time-out error 0: Odd parity 1: Even parity (error)
- 63 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
9.4 Commands
COMMAND FUNCTION
20h
Read Command Byte of Keyboard Controller Write Command Byte of Keyboard Controller
60h
Test Password A4h Returns 0Fah if Password is loaded Returns 0F1h if Password is not loaded A5h A6h A7h A8h Load Password Load Password until a "0" is received from the system Enable Password Enable the checking of keystrokes for a match with the password Disable Auxiliary Device Interface Enable Auxiliary Device Interface Interface Test
BIT 00 BIT DEFINITION No Error Detected Auxiliary Device "Clock" line is stuck low Auxiliary Device "Clock" line is stuck high Auxiliary Device "Data" line is stuck low Auxiliary Device "Data" line is stuck low
A9h
01 02 03 04
AAh
Self-test Returns 055h if self test succeeds
-64-
W83627SF
Commands, continued
COMMAND
FUNCTION
Interface Test
BIT 00 BIT DEFINITION No Error Detected Keyboard "Clock" line is stuck low Keyboard "Clock" line is stuck high Keyboard "Data" line is stuck low Keyboard "Data" line is stuck high
ABh
01 02 03 04
ADh AEh C0h C1h C2h D0h D1h D2h D3h D4h E0h FXh
Disable Keyboard Interface Enable Keyboard Interface Read Input Port(P1) and send data to the system Continuously puts the lower four bits of Port1 into STATUS register Continuously puts the upper four bits of Port1 into STATUS register Send Port2 value to the system Only set/reset GateA20 line based on the system data bit 1 Send data back to the system as if it came from Keyboard Send data back to the system as if it came from Auxiliary Device Output next received byte of data from system to Auxiliary Device Reports the status of the test inputs Pulse only RC(the reset line) low for 6S if Command byte is even
- 65 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
9.5 HARDWARE GATEA20/KEYBOARD RESET CONTROL LOGIC
The KBC implements a hardware control logic to speed-up GATEA20 and KBRESET. This control logic is controlled by LD5-CRF0 as follows:
9.5.1 KB Control Register (Logic Device 5, CR-F0)
BIT 7 6 5 4 3 2 1 0
Name
KCLKS1
KCLKS0 Reserved Reserved Reserved
P92EN
HGA20
HKBRST
KCLKS1, KCLKS0 This 2 bits are for the KBC clock rate selection.
=00 =01 =10 =11
KBC clock input is 6 Mhz KBC clock input is 8 Mhz KBC clock input is 12 Mhz KBC clock input is 16 Mhz
P92EN (Port 92 Enable) A "1" on this bit enables Port 92 to control GATEA20 and KBRESET. A "0" on this bit disables Port 92 functions. HGA20 (Hardware GATE A20) A "1" on this bit selects hardware GATEA20 control logic to control GATE A20 signal. A "0" on this bit disables hardware GATEA20 control logic function. HKBRST (Hardware Keyboard Reset) A "1" on this bit selects hardware KB RESET control logic to control KBRESET signal. A "0" on this bit disable hardware KB RESET control logic function. When the KBC receives a data follows a "D1" command, the hardware control logic sets or clears GATE A20 according to the received data bit 1. Similarly, the hardware control logic sets or clears KBRESET depending on the received data bit 0. When the KBC receives a "FE" command, the KBRESET is pulse low for 6S(Min.) with 14S(Min.) delay. GATEA20 and KBRESET are controlled by either the software control or the hardware control logic and they are mutually exclusive. Then, GATEA20 and KBRESET are merged along with Port92 when P92EN bit is set.
9.5.2 Port 92 Control Register (Default Value = 0x24)
BIT 7 6 5 4 3 2 1 0
Name
Res. (0)
Res. (0)
Res. (1)
Res. (0)
Res. (0)
Res. (1)
SGA20
PLKBRST
SGA20 (Special GATE A20 Control) A "1" on this bit drives GATE A20 signal to high. A "0" on this bit drives GATE A20 signal to low. PLKBRST (Pull-Low KBRESET) A "1" on this bit causes KBRESET to drive low for 6S(Min.) with 14S(Min.) delay. Before issuing another keyboard reset command, the bit must be cleared.
-66-
W83627SF
10. GENERAL PURPOSE I/O
W83627SF provides 42 input/output ports that can be individually configured to perform a simple basic I/O function or a pre-defined alternate function. These 42 GP I/O ports are divided into seven groups. GP1 is configured through control registers in logical device 7, GP2 in logical device 8, GP3 and GP4 in logical device 9, GP5, GP6, and GP7 in logical device C. Users can configure each individual port to be an input or output port by programming respective bit in I/O selection register (0 = output, 1 = input). Invert port value by setting inversion register (0 = non-inverse, 1 = inverse). Port value is read/written through data register. Table 10.1 and 10.2 gives more details on GPIO's assignment. In addition, GP3 and GP4 are designed to be functional even in power loss condition (VCC is off). Figure 10.1 shows the GP I/O port's structure. Right after Power-on reset, those ports default to perform basic input function except ports in GP3 and GP4 which maintain their previous settings until a battery loss condition.
Table 10.1
SELECTION BIT 0 = OUTPUT 1 = INPUT INVERSION BIT 0 = NON INVERSE 1 = INVERSE BASIC I/O OPERATIONS
0 0 1 1
0 1 0 1
Basic non-inverting output Basic inverting output Basic non-inverting input Basic inverting input
Table 10.2
GP I/O PORT DATA REGISTER
REGISTER BIT ASSIGNMENT
GP I/O PORT
BIT 0 BIT 1 BIT 2 BIT 3 GP1 BIT 4 BIT 5 BIT 6 BIT 7
GP10 GP11 GP12 GP13 GP14 GP15 GP16 GP17
- 67 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
Table 10.2, continued
GP I/O PORT DATA REGISTER
REGISTER BIT ASSIGNMENT
GP I/O PORT
BIT 0 BIT 1 GP2 BIT 2 BIT 3 BIT 4 BIT 5 BIT 6 BIT 7 BIT 0 BIT 1 GP3 BIT 2 BIT 3 BIT 4 BIT 5 BIT 0 GP4 BIT 1 BIT 2 BIT 0 BIT 1 BIT 2 BIT 3
GP5
GP20 GP21 GP22 GP23 GP24 GP25 GP26 GP27 GP30 GP31 GP32 GP33 GP34 GP35 GP40 GP41 GP42 GP50 GP51 GP52 GP53 GP54 GP55 GP56 GP57 GP60 GP61 GP62 GP63
BIT 4 BIT 5 BIT 6 BIT 7 BIT 0 BIT 1
GP6
BIT 2 BIT 3
-68-
W83627SF
Table 10.2, continued
GP I/O PORT DATA REGISTER
REGISTER BIT ASSIGNMENT
GP I/O PORT
BIT 0 BIT 1
GP7
GP70 GP71 GP72 GP73 GP74
BIT 2 BIT 3 BIT 4
Figure 10.1
11. PLUG AND PLAY CONFIGURATION
The W83627SF uses Compatible PNP protocol to access configuration registers for setting up different types of configurations. In W83627SF, there are twelve Logical Devices (from Logical Device 0 to Logical Device C with the exception of logical device 4 for backward compatibility) which correspond to eleven individual functions: FDC (logical device 0), PRT (logical device 1), UART A (logical device 2), UART B (logical device 3), KBC (logical device 5), CIR (Consumer IR, logical device 6), GP1 (logical device 7), GP2 (logical device 8), GP3 and GP4 (logical device 9), ACPI ((logical device A), Smart Card interface (logical device B), and GP5, GP6, and GP7 (logical device C). Each Logical Device has its own configuration registers (above CR30). Host can access those registers by writing an appropriate logical device number into logical device select register at CR07.
- 69 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
11.1 Compatible PnP
11.1.1 Extended Function Registers
In Compatible PnP, there are two ways to enter Extended Function and read or write the configuration registers. HEFRAS (CR26 bit 6) can be used to select one out of these two methods of entering the Extended Function mode as follows:
HEFRAS ADDRESS AND VALUE
0 1
write 87h to the location 2Eh twice write 87h to the location 4Eh twice
After Power-on reset, the value on RTSA# (pin 43) is latched by HEFRAS of CR26. In Compatible PnP, a specific value (87h) must be written twice to the Extended Functions Enable Register (I/O port address 2Eh or 4Eh). Secondly, an index value (02h, 07h-FFh) must be written to the Extended Functions Index Register (I/O port address 2Eh or 4Eh same as Extended Functions Enable Register) to identify which configuration register is to be accessed. The designer can then access the desired configuration register through the Extended Functions Data Register (I/O port address 2Fh or 4Fh). After programming of the configuration register is finished, an additional value (AAh) should be written to EFERs to exit the Extended Function mode to prevent unintentional access to those configuration registers. The designer can also set bit 5 of CR26 (LOCKREG) to high to protect the configuration registers against accidental accesses. The configuration registers can be reset to their default or hardware settings only by a cold reset (pin MR = 1). A warm reset will not affect the configuration registers.
-70-
W83627SF
11.1.2 Extended Functions Enable Registers (EFERs)
After a power-on reset, the W83627SF enters the default operating mode. Before the W83627SF enters the extended function mode, a specific value must be programmed into the Extended Function Enable Register (EFER) so that the extended function register can be accessed. The Extended Function Enable Registers are write-only registers. On a PC/AT system, their port addresses are 2Eh or 4Eh (as described in previous section).
11.1.3 Extended Function Index Registers (EFIRs), Extended Function Data Registers (EFDRs)
After the extended function mode is entered, the Extended Function Index Register (EFIR) must be loaded with an index value (02h, 07h-FEh) to access Configuration Register 0 (CR0), Configuration Register 7 (CR07) to Configuration Register FE (CRFE), and so forth through the Extended Function Data Register (EFDR). The EFIRs are write-only registers with port address 2Eh or 4Eh (as described in section 12.2.1) on PC/AT systems; the EFDRs are read/write registers with port address 2Fh or 4Fh (as described in section 9.2.1) on PC/AT systems.
11.2 Configuration Sequence
To program W83627SF configuration registers, the following configuration sequence must be followed: (1). Enter the extended function mode (2). Configure the configuration registers (3). Exit the extended function mode
11.2.1 Enter the extended function mode
To place the chip into the extended function mode, two successive wrtites of 0x87 must be applied to Extended Function Enable Registers (EFERs, i.e. 2Eh or 4Eh).
11.2.2 Configurate the configuration registers
The chip selects the logical device and activates the desired logical devices through Extended Function Index Register (EFIR) and Extended Function Data Register(EFDR). EFIR is located at the same address as EFER, and EFDR is located at address (EFIR+1). First, write the Logical Device Number (i.e.,0x07) to the EFIR and then write the number of the desired logical device to the EFDR. If accessing the Chip (Global) Control Registers, this step is not required. Secondly, write the address of the desired configuration register within the logical device to the EFIR and then write (or read) the desired configuration register through EFDR.
11.2.3 Exit the extended function mode
To exit the extended function mode, one write of 0xAA to EFER is required. Once the chip exits the extended function mode, it is in the normal running mode and is ready to enter the configuration mode.
- 71 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
11.2.4 Software programming example
The following example is written in Intel 8086 assembly language. It assumes that the EFER is located at 2Eh, so EFIR is located at 2Eh and EFDR is located at 2Fh. If HEFRAS (CR26 bit 6) is set, 4Eh can be directly replaced by 4Eh and 2Fh replaced by 4Fh. ;----------------------------------------------------------------------------------; Enter the extended function mode ,interruptible double-write ;----------------------------------------------------------------------------------MOVDX,2EH MOV AL,87H OUTDX,AL OUTDX,AL ;----------------------------------------------------------------------------; Configurate logical device 1, configuration register CRF0 | ;----------------------------------------------------------------------------MOVDX,2EH MOVAL,07H OUTDX,AL MOVDX,2FH MOVAL,01H OUTDX,AL ; MOVDX,2EH MOVAL,F0H OUTDX,AL MOVDX,2FH MOV AL,3CH OUTDX,AL ; update CRF0 with value 3CH | ;-----------------------------------------; Exit extended function mode ;-----------------------------------------MOVDX,2EH MOV AL,AAH OUTDX,AL ; select CRF0 ; select logical device 1 ; point to Logical Device Number Reg. |
-72-
W83627SF
12. ACPI REGISTERS FEATURES
W83627SF supports both ACPI and legacy power managements. The switch logic of the power management block generates an SMI# interrupt in the legacy mode and an PME# interrupt in the ACPI mode. The new ACPI feature routes SMI#/PME# logic output either to SMI# or to PME#.The SMI#/PME# logic routes to SMI# only when both PME_EN = 0 and SMIPME_OE = 1. Similarly, the SMI#/PME# logic routes to PME# only when both PME_EN = 1 and SMIPME_OE = 1.
PME_EN IRQ events
SMIPME_OE
SMI / PME Logic
0 1
SMIPME_OE
SMI
PME
Device Idle Timers Device Trap Global STBY Timer
IRQs
Sleep/Wake State machine
WAK_STS Clock Control
- 73 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
13. SMART CARD INTERFACE
Because of similarity of transmission protocol to UART, the register map of Smart Card interface of Winbond I/O is designed to be UART-like for easy programming. Details of these registers are described as follows.
13.1 Receiver Buffer Register (RBR, read only at "base address + 0" when BDLAB = 0)
Data from IC card are buffered in this register for host to read.
13.2 Transmitter Buffer Register (TBR, write only at "base address + 0" when BDLAB = 0)
Host writes to this register to send data to IC card.
13.3 Interrupt Control Register (ICR, at "base address + 1" when BDLAB = 0)
This 8-bit register allows the four types of interrupts. The interrupt system can be completely disabled by resetting bits 0 through 4 of the Interrupt Control Register (ICR). A selected interrupt can be enabled by setting the appropriate bits of this register to a logical 1.
7 0
6 0
5 0
4
3 0
2
1
0 Enable RBR Data Ready Interrupt (ERDRI) Enable TBR Empty Interrupt (ETBREI) Enable SSR Interrupt (ESSRI) Enabel SCPSNT Interrupt (ESCPTI)
Bit 7-5: These bits are always logic 0. Bit 4: ESCPTI. Setting this bit to a logical 1 enables SCPSNT interrupt when a card is inserted. Bit 3: This bit is always logic 0. Bit 2: ESSRI. Setting this bit to a logical 1 enables Smart Card interface status register interrupt. Bit 1: ETBREI. Setting this bit to a logical 1 enables TBR empty interrupt. Bit 0: ERDRI. Setting this bit to a logical 1 enables RBR data ready interrupt.
-74-
W83627SF
13.4 Interrupt Status Register (ISR, read only at "base address + 2")
This register reflects the Smart Card interface interrupt status, which is encoded by different interrupt sources into 4 bits.
7 6 5 4 3 2 1 0 No interrupt pending Interrupt status bit 0 Interrupt status bit 0 Interrupt status bit 0 SCPSNT toggle Interrupt (SCPTI) SCPSNT line status FIFO enabled FIFO enabled
Bit 7, 6: These two bits are set to a logical 1 when SFR bit 0 = 1. Bit 5: Reflect value of SCPSNT line status. Bit 4: Set to 1 if SCPSNT toggles when this type of interrupt is enabled. Bit 0 of this register is also set to 0 if this type of interrupt occurs. Bit 3 - 1: These three bits identify the priority level of the pending interrupt, as shown in the table below. Bit 0: This bit is a logical 1 if there is no interrupt pending. If one of the interrupt sources has occurred, this bit will be set to a logical 0.
INTERRUPT CONTROL FUNCTION
ISR BIT BIT BIT BIT INTERRUPT 3 2 1 0 PRIORITY
0 0 0 1 0 1 1 0 First -
INTERRUPT SET AND FUNCTION INTERRUPT TYPE
Smart Card interface Receive Status RBR Data Ready
INTERRUPT SOURCE
No Interrupt pending
CLEAR INTERRUPT
-
1. OER = 1 2. PBER =1 Read SCSR 3. NSER = 1 4. SBD = 1 1. RBR data ready 2. FIFO interrupt active level reached Data present in RX FIFO for 4 characters period of time since last access of RX FIFO. TBR empty 1. Read RBR 2. Read RBR until FIFO data under active level Read RBR 1. Write data into TBR 2. Read ISR (if priority is third)
0
1
0
0
Second
1
1
0
0
Second
FIFO Data Timeout
0
0
1
0
Third
TBR Empty
- 75 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
13.5 Smart Card FIFO Control Register (SCFR, write only at "base address + 2")
This register is used to control the FIFO functions of Smart Card interface.
7
6
5
4
3
2
1
0 FIFO enable Receiver FIFO reset Transmitter FIFO reset RX interrupt active level (LSB) RX interrupt active level (MSB)
Bit 6, 7:These two bits are used to set the active level for the receiver FIFO interrupt. For example, if the interrupt active level is set as 4 bytes, once there are more than 4 data characters in the receiver FIFO, the interrupt will be activated to notify the CPU to read the data from the FIFO.
FIFO TRIGGER LEVEL
BIT 7 BIT 6 RX FIFO INTERRUPT ACTIVE LEVEL (BYTES)
0 0 1 1 Bit 5 - 3:Reserved.
0 1 0 1
01 04 08 14
Bit 2: Setting this bit to a logical 1 resets the TX FIFO counter logic to initial state. This bit will be cleared to a logical 0 by itself after being set to a logical 1. Bit 1: Setting this bit to a logical 1 resets the RX FIFO counter logic to initial state. This bit will be cleared to a logical 0 by itself after being set to a logical 1. Bit 0: This bit enables FIFO of Smart Card interface. This bit should be set to a logical 1 before other bits of SCFR are programmed.
-76-
W83627SF
13.6 Smart Card Control Register (SCCR, write only at "base address + 3")
The Smart Card Control Register controls and defines the parity bit protocol for asynchronous data communications.
7
6 0
5 0
4
3
2 0
1 1
0 1 Parity Bit Enable (PBE) Even Parity Enable (EPE) Baud rate Divisor Latch Access Bit (BDLAB)
Bit 7: BDLAB. When this bit is set to a logical 1, designers can access the divisor (in 16-bit binary format) from the divisor latches of the baudrate generator during a read or write operation. When this bit is reset, the Receiver Buffer Register, the Transmitter Buffer Register, or the Interrupt Control Register can be accessed. Bit 6 - 5: Reserved. Always 0 when read. Bit 4: EPE. This bit describes the number of logic 1's in the data word bits and parity bit only when bit 3 is programmed. When this bit is set, an even number of logic 1's are sent or checked. When the bit is reset, an odd number of logic 1's are sent or checked. Bit 3: PBE. When this bit is set, the position between the last data bit and the stop bit of the SOUT will be stuffed with the parity bit at the transmitter. For the receiver, the parity bit in the same position as the transmitter will be detected. Bit 2 - 0: Reserved. Bit 2 is always 0 and bit 1 - 0 are always 1 when read.
13.7 Interrupt Enable Register (IER, at "base address + 4")
This register contains global interrupt enable bit of Smart Card interface.
7 0
6 0
5 0
4 0
3
2 0
1 0
0 0 IRQ enable
Bit 7 - 4: Reserved. Always 0 when read. Bit 3: The Smart Card interface interrupt output is enabled by setting this bit to a logic 1. Bit 2 - 0: Reserved. Always 0 when read.
- 77 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
13.8 Smart Card Status Register (SCSR, at "base address + 5")
This 8-bit register provides information about the status of the data transfer during communication.
7
6
5
4
3
2
1
0 RBR Data Ready (RDR) Overrun Error (OER) Parity Bit Error (PBER) No Stop bit Error (NSER) Silent Byte Detected (SBD) Transmitter Buffer Register Empty (TBRE) Transmitter Shift Register Empty (TSRE) RX FIFO Error Indication (RFEI)
Bit 7: RFEI. This bit is set to a logic 1 when there is at least one parity bit error, no stop bit error or silent byte detected in the FIFO. It is cleared by reading SCSR until there are no remaining errors left in the FIFO. Bit 6: TSRE. If the transmitting FIFO and TSR are both empty, it will be set to a logical 1. Otherwise, this bit will be reset to a logical 0. Bit 5: TBRE. When a data character is transferred from TBR to TSR, this bit will be set to a logical 1. If ETBREI of ICR is a logical 1, an interrupt will be generated to notify the CPU to write the next data. It will be reset to a logical 0 when CPU writes data into TBR or FIFO. Bit 4: SBD. This bit is set to a logical 1 to indicate that received data are kept in silent state for a full word time, including start bit, data bits, parity bit, and stop bits. When the CPU reads SCSR, it will clear this bit to a logical 0. Bit 3: NSER. This bit is set to a logical 1 to indicate that the received data have no stop bit. When CPU reads SCSR, it will clear this bit to a logical 0. Bit 2: PBER. This bit is set to a logical 1 to indicate that parity bit of received data is incorrect. When CPU reads SCSR, it will clear this bit to a logical 0. Bit 1: OER. This bit is set to a logical 1 to indicate received data have been overwritten by the next received data before they were read by CPU. When CPU reads USR, it will clear this bit to a logical 0. Bit 0: RDR. This bit is set to a logical 1 to indicate received data are ready to be read by CPU in the RBR or FIFO. After no data are left in the RBR or FIFO, the bit will be reset to a logical 0.
-78-
W83627SF
13.9 Extended Control Register (ECR, at "base address + 7")
This 8-bit register provides control settings for Smart Card interface.
7
6
5
4
3
2
1
0 Warm reset SCIO direction CLKSTP CLKSTPH SCCLK frequency select bit 0 SCCLK frequency select bit 1 Internal sampling clock base select bit 0 Internal sampling clock base select bit 1
Bit 7 - 6: These two bits (BASESEL1 and BASESEL0 respectively) select internal sampling clock base multiplier versus baud rate.
BASESEL1, BASESEL0 MULTIPLIER
00 01 10 11
14x 16x 18x 16x
Bit 5 - 4: These two bits (CLKSEL1 and CLKSEL0 respectively) select frequency of SCCLK.
CLKSEL1, CLKSEL0 SCCLK FREQUUENCY
00 01 10 11
1.5 MHz 3 MHz 6 MHz 12 MHz
Bit 3: CLKSTPH. This bit determines SCCLK stuck at high or low after CLKSTP is set to 1. SCCLK stays high if CLKSTPH is equal to 1 and stays low otherwise. Bit 2: CLKSTP. Setting this bit to 1 will stop SCCLK. Bit 1: SCDIR. This bit determine direction of SCIO pin. SCIO serves as an input port if SCDIR is 1. It is an output port if SCDIR is 0. Bit 0: WRST. Writing a 1 to this bit issues a warm reset to IC card. It is self-cleared after writing a 1.
- 79 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
13.10 Baud rate divisor Latch High and Baud rate divisor Latch Low (BHL and BLL at "base address + 1" and "base address + 0" respectively when BDLAB = 1)
Combining with BASESEL1 and BASESEL0 of ECR, these two bytes of registers provide user all the possible combinations to cover all the available settings regarding clock rate conversion factor and baud rate adjustment factor.
Smart Card interface register bit map.
BIT NUMBER REGISTER ADDRESS BASE
Receiver +0 Buffer BDLAB Register RBR (Read =0 Only) Transmitt er +0 Buffer BDLAB Register TBR =0 (Write Only) +1 Interrupt BDLAB Control ICR Register =0 Interrupt Status Register ISR (Read Only) SMART CARD FIFO SCF Control R Register (Write Only) SMART CARD SCC Control R Register Interrupt Enable IER Register
0
RX Data Bit 0
1
RX Data Bit 1
2
RX Data Bit 2
3
RX Data Bit 3
4
RX Data Bit 4
5
RX Data Bit 5
6
RX Data Bit 6
7
RX Data Bit 7
TX Data Bit 0
TX Data Bit 1
TX Data Bit 2
TX Data Bit 3
TX Data Bit 4
TX Data Bit 5
TX Data Bit 6
TX Data Bit 7
RBR Data Ready Interrupt Enable (ERDRI) "0" if Interrupt Pending
TBR SSR Empty INTERRUP Interrupt T ENABLE Enable (EUSRI) (ETBREI) Interrupt Status Bit (0) Interrupt Status Bit (1)
0
SCPSNT toggle interrupt Enable (ESCPTI) SCPSNT toggle interrupt status (SCPTI)
0
0
0
+2
Interrupt Status Bit (2)
SCPSNT line status
FIFOs Enabled **
FIFOs Enabled **
+2
FIFO Enable
RCVR FIFO Reset
XMIT FIFO Reset
Reserved
Reserved
Reversed
RX Interrupt Active Level (LSB)
RX Interrupt Active Level (MSB) Baudrate Divisor Latch Access Bit (BDLAB) 0 RX FIFO Error Indication (RFEI)
+3
1
1
0
Parity Bit Enable (PBE) IRQ Enable No Stop Bit Error (NSER)
Even Parity Enable (EPE) 0 SILENT BYTE DETECTE D (SBD)
0
0
+4
0
0
0
0
0
+5
SMART RBR Data CARD SCS Ready Status R (RDR) Register
Overrun Error (OER)
Parity Bit Error (PBER)
TBR Empty (TBRE)
TSR Empty (TSRE)
-80-
W83627SF
Smart Card interface register bit map, continued
BIT NUMBER REGISTER ADDRESS BASE
+6 +7 Reserved Extended Control ECR Warm reset Register SCIO direction CLKSTP CLKSTPH SCCLK frequency select 0 SCCLK frequency select 1 Internal Internal sampling sampling clock base clock base select 0 select 1 Bit 6 Bit 7
0
1
2
3
4
5
6
7
Baudrate +0 Divisor BLL BDLAB Latch =1 Low Baudrate +1 Divisor BHL BDLAB Latch =1 High
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 8
Bit 9
Bit 10
Bit 11
Bit 12
Bit 13
Bit 14
Bit 15
14. SERIAL IRQ
W83627SF supports a serial IRQ scheme. This allow a signal line to be used to report the legacy ISA interrupt rerquests. Because more than one device may need to share the signal serial IRQ signal line, an open drain signal scheme is used. The clock source is the PCI clock. The serial interrupt is transfered on the IRQSER signal, one cycle consisting of three frames types: a start frame, several IRQ/Data frame, and one Stop frame.
14.1 Start Frame
There are two modes of operation for the IRQSER Start frame: Quiet mode and Continuous mode. In the Quiet mode, the peripheral drives the SERIRQ signal active low for one clock, and then tristates it. This brings all the states machines of the peripherals from idle to active states. The host controller will then take over driving IRQSER signal low in the next clock and will continue driving the IRQSER low for programmable 3 to 7 clock periods. This makes the total number of clocks low for 4 to 8 clock periods. After these clocks, the host controller will drive the IRQSER high for one clock and then tri-states it. In the Continuous mode, only the host controller initiates the START frame to update IRQ/Data line information. The host controller drives the IRQSER signal low for 4 to 8 clock periods. Upon a reset, the IRQSER signal is defaulted to the Continuous mode for the host controller to initiate the first Start frame.
14.2 IRQ/Data Frame
Once the start frame has been initiated, all the peripherals must start counting frames based on the rsing edge of the start pulse. Each IRQ/Data Frame is three clocks long: Sample phase, Recovery phase, and Turn-around phase. During the Sample phase, the peripheral drives SERIRQ low if the corresponding IRQ is active. If the corresponding IRQ is inactive, then IRQSER must be left tri-stated. During the Recovery phase, the
Publication Release Date: May 31, 2005 Revision A1
- 81 -
W83627SF
peripheral device drives the IRQSER high. During the Turn-around phase, the peripheral device left the IRQSER tri-stated. The IRQ/Data Frame has a number of specific order, as shown in Table 14-2.
Table 14-2 IRQSER Sampling periods
IRQ/DATA FRAME SIGNAL SAMPLED # OF CLOCKS PAST START
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 32:22
IRQ0 IRQ1 SMI# IRQ3 IRQ4 IRQ5 IRQ6 IRQ7 IRQ8 IRQ9 IRQ10 IRQ11 IRQ12 IRQ13 IRQ14 IRQ15 IOCHCK# INTA# INTB# INTC# INTD# Unassigned
2 5 8 11 14 17 20 23 26 29 32 35 38 41 44 47 50 53 56 59 62 95
14.3 Stop Frame
After all IRQ/Data Frames have completed, the host controller will terminate IRQSER by a Stop frame. Only the host controller can initiate the Stop frame by driving IRQSER low for 2 or 3 clocks. If the Stop Frame is low for 2 clocks, the next IRQSER cycle's Sample mode is the Quiet mode. If the Stop Frame is low for 3 clocks, the next IRQSER cycle's Sample mode is the Continuous mode.
-82-
W83627SF
15. CONFIGURATION REGISTER
15.1 Chip (Global) Control Register
CR02 (Default 0x00) Bit 7 - 1 : Reserved. Bit 0 : SWRST --> Soft Reset. CR07 Bit 7 - 0 : LDNB7 - LDNB0 --> Logical Device Number Bit 7 - 0 CR20 Bit 7 - 0 : DEVIDB7 - DEBIDB0 --> Device ID Bit 7 - Bit 0 = 0x59 (read only). CR21 Bit 7 - 0 : DEVREVB7 - DEBREVB0 --> Device Rev Bit 7 - Bit 0 = 0x5v (read only, v is version number). CR22 (Default 0xff) Bit 7 : Reserved. Bit 6 : HMPWD. Hardware monitor power down enable. = 0 Power down = 1 No Power down Bit 5 : URBPWD. UART B power down enable. = 0 Power down = 1 No Power down Bit 4 : URAPWD. UART A power down enable. = 0 Power down = 1 No Power down Bit 3 : PRTPWD. Printer port power down enable. = 0 Power down = 1 No Power down Bit 2 : Reserved. Bit 1 : SCPWD. Smart card interface power down enable. = 0 Power down = 1 No Power down Bit 0 : FDCPWD. FDC power down enable. = 0 Power down = 1 No Power down
- 83 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CR23 (Default 0x00) Bit 7 - 1 : Reserved. Bit 0 : IPD (Immediate Power Down). When set to 1, it will put the whole chip into power down mode immediately. CR24 (Default 0b1s000s0s) Bit 7 : Reserved. Bit 6 : CLKSEL = 0 The clock input on Pin 1 should be 24 Mhz. = 1 The clock input on Pin 1 should be 48 Mhz. The corresponding power-on setting pin is SOUTB (pin 83). Bit 5 - 3 : Reserved. Bit 2 : ENKBC = 0 KBC is disabled after hardware reset. = 1 KBC is enabled after hardware reset. This bit is read only, and set/reset by power-on setting pin. The corresponding power-on setting pin is SOUTA (pin 54). Bit 1 : Reserved Bit 0 : PNPCSV = 0 The Compatible PnP address select registers have default values. = 1 The Compatible PnP address select registers have no default value. When trying to make a change to this bit, new value of PNPCVS must be complementary to the old one to make an effective change. For example, the user must set PNPCSV to 0 first and then reset it to 1 to reset these PnP registers if the present value of PNPCSV is 1. The corresponding power-on setting pin is NDTRA (pin 52). CR25 (Default 0x00) This register contains enable bit for tri-state device's output pins when corresponding power down enable bit (specified in CR24) is set. Bit 7 - 6 : Reserved Bit 5 : URBTRI. For UART B device. Bit 4 : URATRI. For UART A device. Bit 3 : PRTTRI. For printer port device. Bit 2 : Reserved. Bit 1 : SCTRI. For Smart Card interface. Bit 0 : FDCTRI. For FDC device.
-84-
W83627SF
CR26 (Default 0b0s000000) Bit 7 : SEL4FDD =0 Select two FDD mode. =1 Select four FDD mode. Bit 6 : HEFRAS This bit defines how to enable Configuration mode. The corresponding power-on setting pin is NRTSA (pin 51). =0 Write 87h to the location 2Eh twice. =1 Write 87h to the location 4Eh twice. Bit 5 : LOCKREG =0 Enable R/W Configuration Registers. =1 Disable R/W Configuration Registers. Bit 4 :Reserve Bit 3 : DSFDLGRQ = 0 Enable FDC legacy mode on IRQ and DRQ selection, then DO register bit 3 is effective on selecting IRQ. = 1 Disable FDC legacy mode on IRQ and DRQ selection, then DO register bit 3 is not effective on selecting IRQ. Bit 2 : DSPRLGRQ = 0 Enable PRT legacy mode on IRQ and DRQ selection, then DCR bit 4 is effective on selecting IRQ. = 1 Disable PRT legacy mode on IRQ and DRQ selection, then DCR bit 4 is not effective on selecting IRQ. Bit 1 : DSUALGRQ = 0 Enable UART A legacy mode IRQ selecting, then MCR bit 3 is effective on selecting IRQ. = 1 Disable UART A legacy mode IRQ selecting, then MCR bit 3 is not effective on selecting IRQ. Bit 0 : DSUBLGRQ = 0 Enable UART B legacy mode IRQ selecting, then MCR bit 3 is effective on selecting IRQ. = 1 Disable UART B legacy mode IRQ selecting, then MCR bit 3 is not effective on selecting IRQ.
- 85 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CR28 (Default 0x00) Bit 7 - 3 : Reserved. Bit 2 - 0 : PRTMODS2 - PRTMODS0 = 0xx Parallel Port Mode = 100 Reserved = 101 External FDC Mode = 110 Reserved = 111 External two FDC Mode CR29 (GPIO3 multiplexed pin selection register. VBAT powered. Default 0x00) Bit 7 : PIN64S = 0 SUSLED (SUSLED control bits are in CRF3 of Logical Device 9) = 1 GP35 Bit 6 : PIN69S = 00 CIRRX# = 01 GP34 Bit 5 : PIN70S = 0 RSMRST# = 1 GP33 Bit 4 : PIN71S = 0 PWROK = 1 GP32 Bit 3 : PIN72S = 0 PWRCTL# = 1 GP31 Bit 2 : PIN 73S = 0 SLP_SX# = 1 GP30 Bit 1 : Reserved. Bit 0 : PIN103S = 0 Pin 103 and pin 104 function as GP41 and GP40 respectively. =1 Pin 103 is S5# signal input signal and pin 104 is system S3 state power control signal.
The corresponding power on setting pin is GP42 (pin 102). Its value is latched on the rising edge of internal RSMRST# signal (delay of rising edge of Internal RSMRST# signal from VSB on is half way of that of external RSMRST# pin). The S3 state power control pin (pin 104) outputs low when VSB is on. It outputs high following the falling edge of SLP_SX# (pin 73) signal falling edge. Then it is reset by the falling edge of S5# signal (pin 103).
*Note: The falling edge of PWRCTL# signal (pin 72) is delayed an additional 5ms from the falling edge of SLP_SX# signal for supporting STR (Suspend To RAM) function.
-86-
W83627SF
CR2A (GPIO multiplexed pin selection register 1. VCC powered. Default 0X7C) Bit 7 : Port Select (select Game Port or General Purpose I/O Port 1) = 0 Game Port = 1 Enable bit 6 - 2 selection between GP10 ~ GP14 or 8042 KBC P12 - P16 for pin 128 - 124. Bit 6 : PIN128S = 08042 P12 = 1GP10 Bit 5 : PIN127S = 08042 P13 = 1GP11 Bit 4 : PIN126S = 08042 P14 = 1GP12 Bit 3 : PIN125S = 08042 P15 = 1GP13 Bit 2 : PIN124S = 08042 P16 = 1GP14 Bit 1 : PIN120S = 0MSO (MIDI Serial data Output) = 1IRQIN0 (select IRQ resource through CRF3 bit 3 - 0 of Logical Device 8) Bit 0 : PIN119S = 0MSI (MIDI Serial data Input) = 1GP20 CR2B (GPIO multiplexed pin selection register 2. VCC powered. Default 0xC0) Bit 7 - 6 : Reserved Bit 5 : PIN90S = 0PLED (PLED0 control bits are in CRF5 bit 7 - 6 of Logical Device 8) = 1GP23 Bit 4 : PIN89S = 0 WDTO (Watch Dog Timer is controlled by CRF5, CRF6, CRF7 of Logical Device 8) = 1 GP24 Bit 3 : PIN88S = 0 IRRX = 1 GP25
- 87 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
: PIN87S = 0 IRTX = 1 GP26 Bit 1 - 0 :PIN2S = 00 DRVDEN1 = 01 SMI# = 10 IRQIN1 (select IRQ resource through CRF3 Bit 7 - 4 of Logical Device 8) = 11 GP27
CR2C (GPIO multiplexed pin selection register 3. VCC powered. Default 0bsss11111) Bit 7 : Multi-function selection bit for pin 91, 92, 98 -100, and 106 - 110. =0 GP21 - 22, GP60 - 62, and GP51 - GP55 =1 VID function The corresponding power on setting pin is GP57 (pin 102). Its value is latched on the rising edge of PWROK after VDD is on. Refer to CRF9and CRFA of Logical Device C for detailed description of VID function. Bit 6 - 5 : Multi-function selection bit for pin 112, 113, 115, 116, and 118 = 00 GP74-71 and GP70 = 01 Reserved = 10 Smart Card function = 11 Reserved The corresponding power on setting pin for bit 6 is GP70 (pin 118) and GP72 (pin 115)
Bit 2
for bit5. Both values are latched on the rising edge of PWROK after VDD is on. If either bit 5or bit 6 is set to "1" after PWROK rising edge, these two bit can only be read. They can be written if powered on to select GP function initially and switch to Smard Card function. : Reserved
Bit 4-0
CR2D (Default 0x00) Test Mode: Reserved for Winbond. CR2E (Default 0x00) Test Mode: Reserved for Winbond. CR2F (Default 0x00) Test Mode: Reserved for Winbond.
-88-
W83627SF
15.2 Logical Device 0 (FDC)
CR30 (Default 0x01 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 1 : Reserved. Bit 0 = 1 Activates the logical device. = 0 Logical device is inactive. CR60, CR 61 (Default 0x03, 0xf0 if PNPCSV = 0 during POR, default 0x00, 0x00 otherwise) These two registers select FDC I/O base address [0x100:0xFF8] on 8 byte boundary. CR70 (Default 0x06 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 4 : Reserved. Bit 3 - 0 : These bits select IRQ resource for FDC. CR74 (Default 0x02 if PNPCSV = 0 during POR, default 0x04 otherwise) Bit 7 - 3 : Reserved. Bit 2 - 0 : These bits select DRQ resource for FDC. = 0x00 DMA0 = 0x01 DMA1 = 0x02 DMA2 = 0x03 DMA3 = 0x04 - 0x07 No DMA active CRF0 (Default 0x0E) FDD Mode Register Bit 7 : FIPURDWN This bit controls the internal pull-up resistors of the FDC input pins RDATA, INDEX, TRAK0, DSKCHG, and WP. = 0 The internal pull-up resistors of FDC are turned on.(Default) = 1 The internal pull-up resistors of FDC are turned off. Bit 6 : INTVERTZ This bit determines the polarity of all FDD interface signals. = 0 FDD interface signals are active low. = 1 FDD interface signals are active high. Bit 5 : DRV2EN (PS2 mode only) When this bit is a logic 0, indicates a second drive is installed and is reflected in status register A. Bit 4 : Swap Drive 0, 1 Mode = 0 No Swap (Default) = 1 Drive and Motor sel 0 and 1 are swapped. Bit 3 - 2 :Interface Mode = 11 AT Mode (Default) = 10 (Reserved) = 01 PS/2 = 00 Model 30 Publication Release Date: May 31, 2005 Revision A1
- 89 -
W83627SF
Bit 1 : FDC DMA Mode = 0 Burst Mode is enabled = 1 Non-Burst Mode (Default) : Floppy Mode = 0 Normal Floppy Mode (Default) = 1 Enhanced 3-mode FDD
Bit 0
CRF1 (Default 0x00) Bit 7 - 6 : Boot Floppy = 00 FDD A = 01 FDD B = 10 FDD C = 11 FDD D Bit 5, 4 : Media ID1, Media ID0. These bits will be reflected on FDC's Tape Drive Register bit 7, 6. Bit 3 - 2 : Density Select = 00 Normal (Default) = 01 Normal = 10 1 ( Forced to logic 1) = 11 0 ( Forced to logic 0) Bit 1 : DISFDDWR = 0 Enable FDD write. = 1 Disable FDD write(forces pins WE, WD stay high). Bit 0 : SWWP = 0 Normal, use WP to determine whether the FDD is write protected or not. = 1 FDD is always write-protected. CRF2 (Default 0xFF) Bit 7 - 6 : FDD D Drive Type Bit 5 - 4 : FDD C Drive Type Bit 3 - 2 : FDD B Drive Type Bit 1 - 0 : FDD A Drive Type
-90-
W83627SF
CRF4 (Default 0x00) FDD0 Selection: Bit 7 : Reserved. Bit 6 : Precomp. Disable. = 1 Disable FDC Precompensation. = 0 Enable FDC Precompensation. Bit 5 : Reserved. Bit 4 - 3 : DRTS1, DRTS0: Data Rate Table select (Refer to TABLE A). = 00 Select Regular drives and 2.88 format = 013-mode drive = 10 2 Meg Tape = 11 Reserved Bit 2 : Reserved. Bit 1:0 : DTYPE0, DTYPE1: Drive Type select (Refer to TABLE B). CRF5 (Default 0x00) FDD1 Selection: Same as FDD0 of CRF4. TABLE A
DRIVE RATE TABLE SELECT DRTS1 DRTS0 DATA RATE DRATE1 DRATE0 SELECTED DATA RATE MFM FM SELDEN
1 0 0 0 0 1 1 0 1 0 0 1 1 1 0 0 0 1
1 0 1 0 1 0 1 0 1 0 1 0
1Meg 500K 300K 250K 1Meg 500K 500K 250K 1Meg 500K 2Meg 250K
--250K 150K 125K --250K 250K 125K --250K --125K
1 1 0 0 1 1 0 0 1 1 0 0
- 91 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
TABLE B
DTYPE0 DTYPE1 DRVDEN0(PIN 2) DRVDEN1(PIN 3) DRIVE TYPE
4/2/1 MB 3.5"" 0 0 1 1 0 1 0 1 SELDEN DRATE1
SELDEN
DRATE0 DRATE0 DRATE0 DRATE1
2/1 MB 5.25" 2/1.6/1 MB 3.5" (3-MODE)
DRATE0
15.3 Logical Device 1 (Parallel Port)
CR30 (Default 0x01 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 1 : Reserved. Bit 0 = 1 Activates the logical device. = 0 Logical device is inactive.
CR60, CR 61 (Default 0x03, 0x78 if PNPCSV = 0 during POR, default 0x00, 0x00 otherwise) These two registers select Parallel Port I/O base address. [0x100:0xFFC] on 4 byte boundary (EPP not supported) or [0x100:0xFF8] on 8 byte boundary (all modes supported, EPP is only available when the base address is on 8 byte boundary). CR70 (Default 0x07 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 4 : Reserved. Bit [3:0] : These bits select IRQ resource for Parallel Port. CR74 (Default 0x03) Bit 7 - 3 : Reserved. Bit 2 - 0 : These bits select DRQ resource for Parallel Port. 0x00=DMA0 0x01=DMA1 0x02=DMA2 0x03=DMA3 0x04 - 0x07= No DMA active
-92-
W83627SF
CRF0 (Default 0x3F) Bit 7 : Reserved. Bit 6 - 3 : ECP FIFO Threshold. Bit 2 - 0 : Parallel Port Mode (CR28 PRTMODS2 = 0) = 100 Printer Mode (Default) = 000 Standard and Bi-direction (SPP) mode = 001 EPP - 1.9 and SPP mode = 101 EPP - 1.7 and SPP mode = 010 ECP mode = 011 ECP and EPP - 1.9 mode = 111 ECP and EPP - 1.7 mode.
15.4 Logical Device 2 (UART A)
CR30 (Default 0x01 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 1 : Reserved. Bit 0 = 1 Activates the logical device. = 0 Logical device is inactive. CR60, CR 61 (Default 0x03, 0xF8 if PNPCSV = 0 during POR, default 0x00, 0x00 otherwise) These two registers select Serial Port 1 I/O base address [0x100:0xFF8] on 8 byte boundary. CR70 (Default 0x04 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 4 : Reserved. Bit 3 - 0 : These bits select IRQ resource for Serial Port 1. CRF0 (Default 0x00) Bit 7 - 2 : Reserved. Bit 1 - 0 : SUACLKB1, SUACLKB0 = 00 UART A clock source is 1.8462 MHz (24MHz/13) = 01 UART A clock source is 2 MHz (24MHz/12) = 10 UART A clock source is 24 MHz (24MHz/1) = 11 UART A clock source is 14.769 MHz (24MHz/1.625)
15.5 Logical Device 3 (UART B)
CR30 (Default 0x01 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 1 : Reserved. Bit 0 = 1 Activates the logical device. = 0 Logical device is inactive. CR60, CR 61 (Default 0x02, 0xF8 if PNPCSV = 0 during POR, default 0x00, 0x00 otherwise) These two registers select Serial Port 2 I/O base address [0x100:0xFF8] on 8 byte boundary.
- 93 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CR70 (Default 0x03 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 4 : Reserved. Bit [3:0] : These bits select IRQ resource for Serial Port 2. CRF0 (Default 0x00) Bit 7 - 4 : Reserved. Bit 3 : RXW4C = 0No reception delay when SIR is changed from TX mode to RX mode. = 1 Reception delays 4 characters-time (40 bit-time) when SIR is changed from TX mode to RX mode. Bit 2 : TXW4C = 0No transmission delay when SIR is changed from RX mode to TX mode. = 1Transmission delays 4 characters-time (40 bit-time) when SIR is changed from RX mode to TX mode. Bit 1 - 0 : SUBCLKB1, SUBCLKB0 = 00 UART B clock source is 1.8462 Mhz (24MHz/13) = 01 UART B clock source is 2 Mhz (24MHz/12) = 10 UART B clock source is 24 Mhz (24MHz/1) = 11 UART B clock source is 14.769 Mhz (24mhz/1.625) CRF1 (Default 0x00) Bit 7 : Reserved. Bit 6 : IRLOCSEL. IR I/O pins' location select. = 0Through SINB/SOUTB. = 1Through IRRX/IRTX. Bit 5 : IRMODE2. IR function mode selection bit 2. Bit 4 : IRMODE1. IR function mode selection bit 1. Bit 3 : IRMODE0. IR function mode selection bit 0.
IR MODE IR FUNCTION IRTX IRRX
00X 010* 011* 100 101 110 111*
Disable IrDA IrDA ASK-IR ASK-IR ASK-IR ASK-IR
tri-state Active pulse 1.6 S Active pulse 3/16 bit time Inverting IRTX/SOUTB pin Inverting IRTX/SOUTB & 500 KHZ clock Inverting IRTX/SOUTB Inverting IRTX/SOUTB & 500 KHZ clock
high Demodulation into SINB/IRRX Demodulation into SINB/IRRX routed to SINB/IRRX routed to SINB/IRRX Demodulation into SINB/IRRX Demodulation into SINB/IRRX
Note: The notation is normal mode in the IR function.
-94-
W83627SF
Bit 2
Bit 1
Bit 0
: HDUPLX. IR half/full duplex function select. = 0The IR function is Full Duplex. = 1The IR function is Half Duplex. : TX2INV. = 0the SOUTB pin of UART B function or IRTX pin of IR function in normal condition. = 1inverse the SOUTB pin of UART B function or IRTX pin of IR function. : RX2INV. = 0the SINB pin of UART B function or IRRX pin of IR function in normal condition. = 1inverse the SINB pin of UART B function or IRRX pin of IR function
15.6 Logical Device 5 (KBC)
CR30 (Default 0x01 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 1 : Reserved. Bit 0 = 1 Activates the logical device. = 0 Logical device is inactive. CR60, CR 61 (Default 0x00, 0x60 if PNPCSV = 0 during POR, default 0x00 otherwise) These two registers select the first KBC I/O base address [0x100:0xFFF] on 1 byte boundary. CR62, CR 63 (Default 0x00, 0x64 if PNPCSV = 0 during POR, default 0x00 otherwise) These two registers select the second KBC I/O base address [0x100:0xFFF] on 1 byte boundary. CR70 (Default 0x01 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 4 : Reserved. Bit [3:0] These bits select IRQ resource for KINT (keyboard). CR72 (Default 0x0C if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 4 : Reserved. Bit [3:0] These bits select IRQ resource for MINT (PS2 Mouse) CRF0 (Default 0x80) Bit 7 - 6 : KBC clock rate selection = 00 Select 6MHz as KBC clock input. = 01 Select 8MHz as KBC clock input. = 10 Select 12Mhz as KBC clock input. = 11 Select 16Mhz as KBC clock input. (W83627SF/W83627HF/F-AW can support these 4 kinds of clock input, but W83627SF/ W83627HF/F-PW only support 12MHz clock input) Bit 5 - 3 : Reserved. Bit 2 = 0 Port 92 disable. = 1 Port 92 enable.
- 95 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
Bit 1 Bit 0
=0 =1 =0 =1
Gate20 software control. Gate20 hardware speed up. KBRST software control. KBRST hardware speed up.
15.7 Logical Device 6 (CIR)
CR30 (Default 0x00) Bit 7 - 1 : Reserved. Bit 0 = 1 Activates the logical device. = 0 Logical device is inactive. CR60, CR 61 (Default 0x00, 0x00) These two registers select CIR I/O base address [0x100:0xFF8] on 8 byte boundary. CR70 (Default 0x00) Bit 7 - 4 : Reserved. Bit [3:0] These bits select IRQ resource for CIR.
15.8 Logical Device 7 (Game Port and MIDI Port and GPIO Port 1)
CR30 (Default 0x00) Bit 7 - 3 : Reserved. Bit 2 = 1 Activate MIDI Port. = 0 MIDI Port is disabled if bit 0 is also 0. Bit 1 = 1 Activate Game Port. = 0 Game Port is is disabled if bit 0 is also 0. Bit 0 = 1 Activate both Game Port and MIDI Port. = 0 Game Port is disabled is bit1 is also 0. MIDI Port is disabled if bit2 is also 0. CR60, CR 61 (Default 0x02, 0x01 if PNPCSV = 0 during POR, default 0x00 otherwise) These two registers select the Game Port base address [0x100:0xFFF] on 1 byte boundary. CR62, CR 63 (Default 0x03, 0x30 if PNPCSV = 0 during POR, default 0x00 otherwise) These two registers select the MIDI Port base address [0x100:0xFFF] on 2 byte boundary. CR70 (Default 0x09 if PNPCSV = 0 during POR, default 0x00 otherwise) Bit 7 - 4 : Reserved. Bit [3:0] : These bits select IRQ resource for MIDI Port . CRF0 (GP10-GP17 I/O selection register. Default 0xFF) When set to a '1', respective GPIO port is programmed as an input port. When set to a '0', respective GPIO port is programmed as an output port. -96-
W83627SF
CRF1 (GP10-GP17 data register. Default 0x00) If a port is programmed to be an output port, then its respective bit can be read/written. If a port is programmed to be an input port, then its respective bit can only be read. CRF2 (GP10-GP17 inversion register. Default 0x00) When set to a '1', the incoming/outgoing port value is inverted. When set to a '0', the incoming/outgoing port value is the same as in data register. CRF3 (MIDI FIFO Threshold register. Default 0x00) Bit 7 - 6: MIDI FIFO Threshold.
BIT 7 BIT 6 RX FIFO INTERRUPT ACTIVE LEVEL (BYTES)
0 0 1 1 Bit 5-0: Reserved
0 1 0 1
01 04 08 14
15.9 Logical Device 8 (GPIO Port 2)
CR30 (GP20-GP27 Default 0x00) Bit 7 - 1 : Reserved. Bit 0 = 1 Activate GPIO2. = 0 GPIO2 is inactive.
note: bit 0 is initialized to power on setting value of pin 81 on the rising edge of PWROK.
CR60, CR 61 (Default 0x00, 0x00) These two registers select GP2 I/O base address [0x100:0xFF8] on 1 byte boundary. CRF0 (GP20-GP27 I/O selection register. Default 0xFF) When set to a '1', respective GPIO port is programmed as an input port. When set to a '0', respective GPIO port is programmed as an output port. CRF1 (GP20-GP27 data register. Default 0x00) If a port is programmed to be an output port, then its respective bit can be read/written. If a port is programmed to be an input port, then its respective bit can only be read. CRF2 (GP20-GP27 inversion register. Default 0x00) When set to a '1', the incoming/outgoing port value is inverted. When set to a '0', the incoming/outgoing port value is the same as in data register.
- 97 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CRF3 (Default 0x00) Bit 7 - 4 : These bits select IRQ resource for IRQIN1. Bit 3 - 0 : These bits select IRQ resource for IRQIN0. CRF4 (Reserved) CRF5 (PLED mode register. Default 0x00) Bit 7-6 : select PLED mode = 00 Power LED pin is tri-stated. = 01 Power LED pin is drived low. = 10 Power LED pin is a 1Hz toggle pulse with 50 duty cycle. = 11 Power LED pin is a 1/4Hz toggle pulse with 50 duty cycle. Bit 5-4 : Reserved Bit 3 : select WDTO count mode. = 0 second = 1 minute Bit 2 : Enable the rising edge of keyboard Reset(P20) to force Time-out event. = 0 Disable = 1 Enable Bit 1 : Enable the keyboard Reset output Low pulse when Time-out. = 0 Disable = 1 Enable Bit 0 : Reserved CRF6 (Default 0x00 if ENGMTO is 0, 0x0A if ENGMTO is 1) Watch Dog Timer Time-out value. Writing a non-zero value to this register causes the counter to load the value to Watch Dog Counter and start counting down. If the Bit 7 and Bit 6 are set, any Mouse Interrupt or Keyboard Interrupt event will also cause the reload of previously-loaded nonzero value to Watch Dog Counter and start counting down. Reading this register returns current value in Watch Dog Counter instead of Watch Dog Timer Time-out value. Bit 7 - 0 = 0x00 Time-out Disable = 0x01 Time-out occurs after 1 second/minute = 0x02 Time-out occurs after 2 second/minutes = 0x03 Time-out occurs after 3 second/minutes ................................................ = 0xFF Time-out occurs after 255 second/minutes
note: The corresponding power on setting pin is pin 81 and its value is latched on the rising edge of PWROK.
1: CRF6 is initialized to be 0x0A and CR30 of this logical device is initialized to be 0x01. 0: CRF6 is initialized to be 0x00 and CR30 of this logical device is initialized to be 0x00.
-98-
W83627SF
CRF7 (Default 0x00) Bit 7 : Mouse interrupt reset Enable or Disable = 1 Watch Dog Timer is reset upon a Mouse interrupt = 0 Watch Dog Timer is not affected by Mouse interrupt Bit 6 : Keyboard interrupt reset Enable or Disable = 1 Watch Dog Timer is reset upon a Keyboard interrupt = 0 Watch Dog Timer is not affected by Keyboard interrupt Bit 5 : Force Watch Dog Timer Time-out, Write only* = 1 Force Watch Dog Timer time-out event; this bit is self-clearing. Bit 4 : Watch Dog Timer Status, R/W = 1 Watch Dog Timer time-out occurred. = 0 Watch Dog Timer counting Bit 3 -0 : These bits select IRQ resource for Watch Dog. Setting of 2 selects SMI.
15.10 Logical Device 9 (GPIO Port 3,4 are powered by standby source VSB)
CR30 (Default 0x02) Bit 7 - 1 : Reserved. Bit 1 = 1 Activate GP4. = 0 GP4 is inactive. Bit 0 = 1 Activate GPIO3. = 0 GPIO3 is inactive. CR60, CR 61 (Default 0x02, 0x90 if PNPCSV = 0 during POR, default 0x00 otherwise) These two registers select the GP3, GP4 port base address [0x100:0xFFF] on 2 byte boundary. GP3 is accessible through "base address" and GP4 is accessible through "base address" +1. CRF0 (GP30-GP35 I/O selection register. Default 0xFF Bit 7 - 6: Reserved) When set to a '1', respective GPIO port is programmed as an input port. When set to a '0', respective GPIO port is programmed as an output port. CRF1 (GP30-GP35 data register. Default 0x00 Bit 7 - 6: Reserved) If a port is programmed to be an output port, then its respective bit can be read/written. If a port is programmed to be an input port, then its respective bit can only be read. CRF2 (GP30-GP35 inversion register. Default 0x00 Bit 7 - 6: Reserved) When set to a '1', the incoming/outgoing port value is inverted. When set to a '0', the incoming/outgoing port value is the same as in data register.
- 99 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CRF3 (SUSLED mode register. Default 0x00) Bit 7 - 6 : select Suspend LED mode = 00 Suspend LED pin is drived low. = 01 Suspend LED pin is tri-stated. = 10 Suspend LED pin is a 1 Hz toggle pulse with 50 duty cycle. = 11 Suspend LED pin is a 1/4 Hz toggle pulse with 50 duty cycle. Bit 5 - 0 : Reserved. CRF4 (GP40-GP42 I/O selection register. Default 0x00 Bit 7 - 3: Reserved) When set to a '1', respective GPIO port is programmed as an input port. When set to a '0', respective GPIO port is programmed as an output port. CRF5 (GP40-GP42 data register. Default 0x00 Bit 7 - 3: Reserved) If a port is programmed to be an output port, then its respective bit can be read/written. If a port is programmed to be an input port, then its respective bit can only be read. CRF6 (GP40-GP42 inversion register. Default 0x00 Bit 7 - 3: Reserved) When set to a '1', the incoming/outgoing port value is inverted. When set to a '0', the incoming/outgoing port value is the same as in data register.
15.11 Logical Device A (ACPI)
CR30 (Default 0x00) Bit 7 - 1 : Reserved. Bit 0 = 1 Activates the logical device. = 0 Logical device is inactive. CR70 (Default 0x00) Bit 7 - 4 : Reserved. Bit 3 - 0 : These bits select IRQ resources for PME . CRE0 (Default 0x00) Bit 7 : DIS-PANSW_IN. Disable panel switch input to turn system power supply on. = 0PANSW_IN is wire-ANDed and connected to PANSW_OUT. = 1PANSW_IN is blocked and can not affect PANSW_OUT. Bit 6 : ENKBWAKEUP. Enable keyboard to wake up system through PANSW_OUT. = 0Disable Keyboard wake-up function. = 1Enable Keyboard wake-up function. Bit 5 : ENMSWAKEUP. Enable Mouse to wake-up system via PANSW_OUT. = 0Disable Mouse wake-up function. = 1Enable Mouse wake-up function. Bit 4 : MSRKEY. Select Mouse Left/Right Button to wake-up system via PANSW_OUT. = 0Select click on Mouse Left-button twice to wake the system up. = 1Select click on Mouse right-button twice to wake the system up. -100-
W83627SF
Bit 3
Bit 2
Bit 1
Bit 0
: ENCIRWAKEUP. Enable CIR to wake-up system via PANSW_OUT. =0 Disable CIR wake-up function. =1 Enable CIR wake-up function. : KB/MS Swap. Enable Keyboard/Mouse port-swap. = 0Keyboard/Mouse ports are not swapped. = 1Keyboard/Mouse ports are swapped. : MSXKEY. Enable any character received from Mouse to wake-up the system. = 0Two clicks of Mouse left/right-button wakes up the system. = 1 One click of Mouse left/right-button wakes up the system. : KBXKEY. Enable any character received from Keyboard to wake-up the system. = 0Only predetermined specific key combination can wake up the system. = 1Any character received from Keyboard can wake up the system.
CRE1 (Default 0x00) Keyboard Wake-Up Index Register This register is used to indicate which Keyboard Wake-Up Shift register or Predetermined key Register is to be read/written via CRE2. The first set of wake up key combination is in the range of 0x00 - 0x0E, the second set 0x30 - 0x3E, and the third set 0x40 - 0x4E. Incoming key combination can be read through 0x10 - 0x1E. The range of CIR wake-up index register is in 0x20 - 0x2F. CRE2 Keyboard Wake-Up Data Register This register holds the value of wake-up key register indicated by CRE1. This register can be read/ written. CRE3 (Read only. Keyboard/Mouse Wake-Up Status Register) Bit 7 - 6 : Reserved. Bit 5 : VSBLOSS: This bit is set when VSB is off. Bit 4 : PWRLOSS_STS: This bit is set when previous power state is off.. Bit 3 : CIR_STS. The Panel switch event is caused by CIR wake-up event. This bit is cleared by reading this register. Bit 2 : PANSW_STS. The Panel switch event is caused by PANSW_IN. This bit is cleared by reading this register. Bit 1 : Mouse_STS. The Panel switch event is caused by Mouse wake-up event. This bit is cleared by reading this register. Bit 0 : Keyboard_STS. The Panel switch event is caused by Keyboard wake-up event. This bit is cleared by reading this register.
- 101 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CRE4 (Default 0x00) Bit 7 : Power loss control bit 2. 0 = Disable ACPI resume. 1 = Enable ACPI resume. Bit 6 - 5 : Power loss control bit <1:0> 00 = System always turns off when come back from power loss state. 01 = System always turns on when come back from power loss state. 10 = System turns on/off when come back from power loss state depending on the state before power loss. 11 = Reserved. Bit 4 : Suspend clock source select 0 = Use internal clock source. 1 = Use external suspend clock source(32.768KHz). Bit 3 : Keyboard wake-up type select for wake-up the system from S1/S2. 0 = Password or Hot keys programmed in the registers. 1 = Any key. Bit 2 : Enable all wake-up event set in CRE0 can wake-up the system from S1/S2 state. This bit is cleared when wake-up event occurs. 0 = Disable. 1 = Enable. Bit 1 - 0 : Reserved. CRE5 (Default 0x00) Bit 7 : ENS5RST: Enable S5# signal (pin 103) to reset SUSLED mode register (CRF3 of logical device 9). = 0SUSLED mode register is reset only by RSMRST#. = 1SUSLED mode register can be reset by RSMRST# or S5#. Bit 6 - 0 : Compared Code Length. When the compared codes are storaged in the data register, these data length should be written to this register. CRE6 (Default 0x00) Bit 7 : ENMDATUP: Enable an MDAT low pulse to wake up system through PSOUT#. = 0Disable. = 1Enable. Bit 6 : EN_SCUP: Enable SCPSNT# of Smart Card interface to wake up system through PSOUT#. = 0Disable. = 1Enable. Bit 5 - 0 : CIR Baud Rate Divisor. The clock base of CIR is 32k Hz, so that the baud rate is 32khz divided by (CIR Baud Rate Divisor + 1).
-102-
W83627SF
CRE7 (Default 0x00) Bit 7 : ENKD3. Enable the third set of key combination to wake up system through PANSW_OUT if keyboard wake up function is enabled. = 0 Disable the third set of key combination. = 1 Enable the third set of key combination. Bit 6 : ENKD2. Enable the second set of key combination to wake up system through PANSW_OUT if keyboard wake up function is enabled. = 0 Disable the second set of key combination. = 1 Enable the second set of key combination. Bit 5 : ENWIN98KEY. Enable WIN98 keyboard dedicated key to wake up system through PANSW_OUT if keyboard wake up function is enabled. = 0 Disable WIN98 keyboard wake up. = 1 Enable WIN98 keyboard wake up. Bit 4 : EN_ONPSOUT. Enable to issue a 0.5 s long PSOUT# pulse when system returns from power loss state and is supposed to be on as described in CRE4 bit 6, 5 of logical device A. = 0Disable this function. = 1Enable this function. Bit 3 : SELWDTORST: Select whether Watch Dog timer function is reset by LRESET_L signal or PWROK signal. = 0Watch Dog timer function is reset by LRESET_L signal. = 1Watch Dog timer function is reset by PWROK signal. Bit 2 : Reset CIR Power-On function. After using CIR power-on, the software should write logical 1 to restart CIR power-on function. Bit 1 : Invert RX Data. = 1 Inverting RX Data. = 0 Not inverting RX Data. Bit 0 : Enable Demodulation. = 1 Enable received signal to demodulate. = 0 Disable received signal to demodulate. CRF0 (Default 0x00) Bit 7 : CHIPPME. Chip level auto power management enable. = 0 disable the auto power management functions = 1 enable the auto power management functions. Bit 6 : CIRPME. Consumer IR port auto power management enable. = 0 disable the auto power management functions = 1 enable the auto power management functions. Bit 5 : MIDIPME. MIDI port auto power management enable. = 0 disable the auto power management functions = 1 enable the auto power management functions.
- 103 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
: SCPME. Smart Card interface auto power management enable. = 0 disable the auto power management functions. = 1 enable the auto power management functions. : PRTPME. Printer port auto power management enable. = 0 disable the auto power management functions. = 1 enable the auto power management functions. : FDCPME. FDC auto power management enable. = 0 disable the auto power management functions. = 1 enable the auto power management functions. : URAPME. UART A auto power management enable. = 0 disable the auto power management functions. = 1 enable the auto power management functions. : URBPME. UART B auto power management enable. = 0 disable the auto power management functions. = 1 enable the auto power management functions.
CRF1 (Default 0x00) Bit 7 : WAK_STS. This bit is set when the chip is in the sleeping state and an enabled resume event occurs. Upon setting this bit, the sleeping/working state machine will transition the system to the working state. This bit is only set by hardware and is cleared by writing a 1 to this bit position or by the sleeping/working state machine automatically when the global standby timer expires. =0 the chip is in the sleeping state. =1 the chip is in the working state. Bit 6 - 0 : Devices' trap status. CRF3 (Default 0x00) Bit 7 - 6 : Reserved. Return zero when read. Bit 5 - 0 : Device's IRQ status. These bits indicate the IRQ status of the individual device respectively. The device's IRQ status bit is set by their source device and is cleared by writing a 1. Writing a 0 has no effect. Bit 5 : MOUIRQSTS. MOUSE IRQ status. Bit 4 : KBCIRQSTS. KBC IRQ status. Bit 3 : PRTIRQSTS. printer port IRQ status. Bit 2 : FDCIRQSTS. FDC IRQ status. Bit 1 : URAIRQSTS. UART A IRQ status. Bit 0 : URBIRQSTS. UART B IRQ status.
-104-
W83627SF
CRF4 (Default 0x00) Bit 7 : Reserved. Return zero when read. Bit 4 - 0 : These bits indicate the IRQ status of the individual GPIO function or logical device respectively. The status bit is set by their source function or device and is cleared by writing a 1. Writing a 0 has no effect. Bit 6 : SCIRQSTS. Smart Card interface IRQ status. Bit 5 : Reserved. Return zero when read. Bit 4 : WDTIRQSTS. Watch dog timer IRQ status. Bit 3 : CIRIRQSTS. Consumer IR IRQ status. Bit 2 : MIDIIRQSTS. MIDI IRQ status. Bit 1 : IRQIN1STS. IRQIN1 status. Bit 0 : IRQIN0STS. IRQIN0 status. CRF6 (Default 0x00) Bit 7 - 6 : Reserved. Return zero when read. Bit 5 - 0 : Enable bits of the SMI / PME generation due to the device's IRQ.
These bits enable the generation of an SMI / PME interrupt due to any IRQ of the devices.
SMI / PME logic output = (MOUIRQEN and MOUIRQSTS) or (KBCIRQEN and KBCIRQSTS) or (PRTIRQEN and PRTIRQSTS) or (FDCIRQEN and FDCIRQSTS) or (URAIRQEN and URAIRQSTS) or (URBIRQEN and URBIRQSTS) or (SCIRQEN and SCIRQSTS) or (WDTIRQEN and WDTIRQSTS) or (IRQIN3EN and IRQIN3STS) or (IRQIN2EN and IRQIN2STS) or (IRQIN1EN and IRQIN1STS) or (IRQIN0EN and IRQIN0STS) Bit 5 : MOUIRQEN.
= 0disable the generation of an SMI / PME interrupt due to MOUSE's IRQ. Bit 4 = 1enable the generation of an SMI / PME interrupt due to MOUSE's IRQ. : KBCIRQEN. = 0disable the generation of an SMI / PME interrupt due to KBC's IRQ. Bit 3 = 1enable the generation of an SMI / PME interrupt due to KBC's IRQ. : PRTIRQEN. = 0disable the generation of an SMI / PME interrupt due to printer port's IRQ. Bit 2 = 1enable the generation of an SMI / PME interrupt due to printer port's IRQ. : FDCIRQEN. = 0disable the generation of an SMI / PME interrupt due to FDC's IRQ. Bit 1 = 1enable the generation of an SMI / PME interrupt due to FDC's IRQ. : URAIRQEN. = 0disable the generation of an SMI / PME interrupt due to UART A's IRQ. Bit 0 = 1enable the generation of an SMI / PME interrupt due to UART A's IRQ. : URBIRQEN. = 0disable the generation of an SMI / PME interrupt due to UART B's IRQ. = 1enable the generation of an SMI / PME interrupt due to UART B's IRQ.
- 105 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CRF7 (Default 0x00) Bit 7 : Reserved. Return zero when read. Bit 5 - 0 : Enable bits of the SMI / PME generation due to the GPIO IRQ function or device's IRQ.
Bit 6
: SCIRQEN. = 0disable the generation of an SMI / PME interrupt due to Smart Card interface IRQ. = 1enable the generation of an SMI / PME interrupt due to Smart Card interface IRQ. : Reserved. Return zero when read. : WDTIRQEN. = 0disable the generation of an SMI / PME interrupt due to watch dog timer's IRQ. = 1enable the generation of an SMI / PME interrupt due to watch dog timer's IRQ. : CIRIRQEN. = 0disable the generation of an SMI / PME interrupt due to CIR's IRQ. = 1enable the generation of an SMI / PME interrupt due to CIR's IRQ. : MIDIIRQEN. = 0disable the generation of an SMI / PME interrupt due to MIDI's IRQ. = 1enable the generation of an SMI / PME interrupt due to MIDI's IRQ. : IRQIN1EN. = 0disable the generation of an SMI / PME interrupt due to IRQIN1's IRQ. = 1enable the generation of an SMI / PME interrupt due to IRQIN1's IRQ. : IRQIN0EN. = 0disable the generation of an SMI / PME interrupt due to IRQIN0's IRQ. = 1enable the generation of an SMI / PME interrupt due to IRQIN0's IRQ.
Bit 5 Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
CRF9 (Default 0x00) Bit 7 - 3: Reserved. Return zero when read. Bit 2 : PME_EN: Select the power management events to be either an PME or SMI interrupt for the IRQ events. Note that: this bit is valid only when SMIPME_OE = 1.
=0 Bit 1
the power management events will generate an SMI event.
=1 the power management events will generate an PME event. : FSLEEP: This bit selects the fast expiry time of individual devices. =0 1 second. =1 8 milli-seconds. : SMIPME_OE: This is the SMI and PME output enable bit. =0 neither SMI nor PME will be generated. Only the IRQ status bit is set.
Bit 0
=1 an SMI or PME event will be generated. CRFE, FF (Default 0x00) Reserved for Winbond test.
-106-
W83627SF
15.12 Logical Device B (Smart Card interface)
CR30 (Default 0x00) Bit 7 - 1 : Reserved. Bit 0 = 1 Activates the logical device. = 0 Logical device is inactive. CR60, CR 61 (Default 0x00, 0x00) These two registers select Smart Card interface base address [0x100:0xFFF] on 8-byte boundary. CR70 (Default 0x00) Bit 7 - 4 : Reserved. Bit 3 - 0 : These bits select IRQ resource for Smart Card interface.
15.13 Logical Device C (GPIO Port 5,6,7 This power of the Ports is Source VCC)
CR30 (Default 0x07) Bit 7 - 3 : Reserved. Bit 2 = 1 Activate GP7. = 0 GP7 is inactive. Bit 1 = 1 Activate GP6. = 0 GP6 is inactive. Bit 0 = 1 Activate GP5 = 0 GP5 is inactive. CR60, CR 61 (Default 0x00) These two registers select the GP5, GP6, GP7 port base address [0x100:0xFFF] on 4 byte boundary. GP5 is accessible through "base address", GP6 "base address" +1, and GP7 "base address" +2. CRF0 (GP50-GP56 I/O selection register. Default 0x00 Bit 7: Reserved) When set to a '1', respective GPIO port is programmed as an input port. When set to a '0', respective GPIO port is programmed as an output port. CRF1 (GP50-GP56 data register. Default 0x00 Bit 7: Reserved) If a port is programmed to be an output port, then its respective bit can be read/written. If a port is programmed to be an input port, then its respective bit can only be read. CRF2 (GP50-GP56 inversion register. Default 0x00 Bit 7: Reserved) When set to a '1', the incoming/outgoing port value is inverted. When set to a '0', the incoming/outgoing port value is the same as in data register.
- 107 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
CRF3 (GP60-GP63 I/O selection register. Default 0xFF Bit 7-4: Reserved) When set to a '1', respective GPIO port is programmed as an input port. When set to a '0', respective GPIO port is programmed as an output port. CRF4 (GP60-GP63 data register. Default 0xFF Bit 7-4: Reserved) If a port is programmed to be an output port, then its respective bit can be read/written. If a port is programmed to be an input port, then its respective bit can only be read. CRF5 (GP60-GP63 inversion register. Default 0x00 Bit 7-4: Reserved) When set to a '1', the incoming/outgoing port value is inverted. When set to a '0', the incoming/outgoing port value is the same as in data register. CRF6 (GP70-GP74 I/O selection register. Default 0xFF Bit 7-5: Reserved) When set to a '1', respective GPIO port is programmed as an input port. When set to a '0', respective GPIO port is programmed as an output port. CRF7 (GP70-GP74 data register. Default 0xFF Bit 7-5: Reserved) If a port is programmed to be an output port, then its respective bit can be read/written. If a port is programmed to be an input port, then its respective bit can only be read. CRF8 (GP70-GP74 inversion register. Default 0x00 Bit 7-5: Reserved) When set to a '1', the incoming/outgoing port value is inverted. When set to a '0', the incoming/outgoing port value is the same as in data register. CRF9 (VID input data register. Bit 7 - 5: Reserved) This register is read only. It contains original VID value. Bit 7 - 5 : Reserved. Bit 4 - 0 : Original VID value. CRFA (VID output data register) This register allows user to configure different VID value. It can be read or written. Bit 7 : Select VID code tables. = 0old VID code table. = 1new VID code table. Bit 6 - 5 : VID guarding bits. The corresponding power on setting pins are GP56, 66 and their values are latched on the rising edge of PWROK signal.
BIT 6 BIT 5 LIMIT
0 0 1 1
0 1 0 1
No constraint 3 units constraint 4 units constraint 5 units constraint
-108-
W83627SF
Bit 4 - 0 : configurable VID output value. If VIDSEL of CR2C is 1 (select VID function), GP22, 21, 62 - 60 function as VID inputs and 55 - 51 function as VID outputs. During PWROK = 0, GP55~51 (VIDOUT) are equivalent to GP22, 21, 62~60 (VIDIN). After power on, User may configure LC.CRFA.bit4 - 0 to output a new VIDOUT combination if this new combination comply with the constraints of VID guarding bits specified in bit 6, 5 of this register. VID outputs are equal to VID inputs if constraint is not met.
16. SPECIFICATIONS
16.1 Absolute Maximum Ratings
PARAMETER RATING UNIT
Power Supply Voltage (5V) Input Voltage RTC Battery Voltage VBAT Operating Temperature Storage Temperature
-0.5 to 7.0 -0.5 to VDD+0.5 2.2 to 4.0 0 to +70 -55 to +150
V V V
C C
Note: Exposure to conditions beyond those listed under Absolute Maximum Ratings may adversely affect the life and reliability of the device.
16.2 DC CHARACTERISTICS
(Ta = 0 C to 70 C, VDD = 5V 10%, VSS = 0V)
PARAMETER SYM. MIN. TYP. MAX. UNIT CONDITIONS
RTC Battery Quiescent Current ACPI Stand-by Power Supply Quiescent Current
IBAT IBAT
2.4 2.0
uA mA
VBAT = 2.5 V VSB = 5.0 V, All ACPI pins are not connected.
I/O8t - TTL level bi-directional pin with source-sink capability of 8 mA
Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input High Leakage Input Low Leakage
VIL VIH VOL VOH ILIH ILIL 2.4 2.0
0.8 0.4 +10 -10
V V V V
A A
IOL = 8 mA IOH = - 8 mA VIN = VDD VIN = 0V
- 109 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
DC CHARACTERISTICS, continued
PARAMETER
SYM.
MIN.
TYP.
MAX.
UNIT
CONDITIONS
I/O12t - TTL level bi-directional pin with source-sink capability of 12 mA
Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input High Leakage Input Low Leakage
VIL VIH VOL VOH ILIH ILIL 2.4 2.0
0.8 0.4 +10 -10
V V V V
A A
IOL = 12 mA IOH = -12 mA VIN = VDD VIN = 0V
I/O12tp3 - 3.3 V TTL level bi-directional pin with source-sink capability of 12 mA
Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input High Leakage Input Low Leakage
VIL VIH VOL VOH ILIH ILIL 2.4 2.0
0.8 0.4 +10 -10
V V V V
A A
IOL = 12 mA IOH = -12 mA VIN = 3.3V VIN = 0V
I/OD12t - TTL level bi-directional pin with sink capability of 12 mA and open-drain
Input Low Voltage Input High Voltage Output Low Voltage Input High Leakage Input Low Leakage
VIL VIH VOL ILIH ILIL 2.0
0.8 0.4 +10 -10
V V V
A A
IOL = 12 mA VIN = 3.3V VIN = 0V
I/O24t - TTL level bi-directional pin with source-sink capability of 24 mA
Input Low Voltage Input High Voltage Output Low Voltage Output High Voltage Input High Leakage Input Low Leakage
VIL VIH VOL VOH ILIH ILIL 2.4 2.0
0.8 0.4 +10 -10
V V V V
A A
IOL = 24 mA IOH = -24 mA VIN = VDD VIN = 0V
OUT12t - TTL level output pin with source-sink capability of 12 mA
Output Low Voltage Output High Voltage
VOL VOH 2.4
0.4
V V
IOL = 12 mA IOH = -12 mA
-110-
W83627SF
DC CHARACTERISTICS, continued
PARAMETER
SYM.
MIN.
TYP.
MAX.
UNIT
CONDITIONS
OUT12tp3 - 3.3 V TTL level output pin with source-sink capability of 12 mA
Output Low Voltage Output High Voltage Output Low Voltage Output Low Voltage Input Low Voltage Input High Voltage Input High Leakage Input Low Leakage pull down resistor
INt - TTL level input pin
VOL VOH VOL VOL VIL VIH ILIH ILIL R VIL VIH ILIH ILIL 2.0 2.0 2.4
0.4
V V
IOL = 12 mA IOH = -12 mA IOL = 12 mA IOL = 24 mA
OD12 - Open-drain output pin with sink capability of 12 mA
0.4 0.4 0.8 +10 -10 47 0.8 +10 -10
V V V V
A A
OD24 - Open-drain output pin with sink capability of 24 mA INtd - TTL level input pin with internal pull down resistor
VIN = VDD VIN = 0 V
K V V
A A
Input Low Voltage Input High Voltage Input High Leakage Input Low Leakage
VIN = VDD VIN = 0 V
INcs- CMOS level Schmitt-triggered input pin
Input Low Threshold Voltage Input High Threshold Voltage Hystersis Input High Leakage Input Low Leakage
VtVt+ VTH ILIH ILIL
1.3 3.2 1.5
1.5 3.5 2
1.7 3.8
V V V
VDD = 5 V VDD = 5 V VDD = 5 V VIN = VDD VIN = 0 V
+10 -10
A A
INts- TTL level Schmitt-triggered input pin
Input Low Threshold Voltage Input High Threshold Voltage Hystersis
VtVt+ VTH
0.5 1.6 0.5
0.8 2.0 1.2
1.1 2.4
V V V
VDD = 5 V VDD = 5 V VDD = 5 V
- 111 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
DC CHARACTERISTICS, continued
PARAMETER
SYM.
MIN.
TYP.
MAX.
UNIT
CONDITIONS
INts- TTL level Schmitt-triggered input pin
Input High Leakage Input Low Leakage
ILIH ILIL
+10 -10
A A
VIN = VDD VIN = 0 V
INtsp3- 3.3 V TTL level Schmitt-triggered input pin
Input Low Threshold Voltage Input High Threshold Voltage Hystersis Input High Leakage Input Low Leakage
VtVt+ VTH ILIH ILIL
0.5 1.6 0.5
0.8 2.0 1.2
1.1 2.4
V V V
VDD = 3.3 V VDD = 3.3 V VDD = 3.3 V VIN = 3.3 V VIN = 0 V
+10 -10
A A
17. APPLICATION CIRCUITS
17.1 Parallel Port Extension FDD
JP13
WE2/SLCT WD2/PE MOB2/BUSY DSB2/ACK PD7 PD6 PD5 DCH2/PD4 RDD2/PD3 STEP2/SLIN WP2/PD2 DIR2/INIT TRK02/PD1 HEAD2/ERR IDX2/PD0 RWC2/AFD STB 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1
JP 13A
DCH2 HEAD2 RDD2
WP2
TRK02 WE2 WD2 STEP2 DIR2 MOB2 DSB2 IDX2
RWC2
34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2
33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1
EXT FDC
PRINTER PORT
Parallel Port Extension FDD Mode Connection Diagram
-112-
W83627SF
17.2 Parallel Port Extension 2FDD
JP13
WE2/SLCT WD2/PE MOB2/BUSY DSB2/ACK DSA2/PD7 MOA2/PD6 PD5 DCH2/PD4 RDD2/PD3 STEP2/SLIN WP2/PD2 DIR2/INIT TRK02/PD1 HEAD2/ERR IDX2/PD0 RWC2/AFD STB 13 25 12 24 11 23 10 22 9 21 8 20 7 19 6 18 5 17 4 16 3 15 2 14 1
JP 13A
DCH2 HEAD2 RDD2
WP2
TRK02 WE2 WD2 STEP2 DIR2 MOB2 DSA2 DSB2 MOA2 IDX2
RWC2
34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2
33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1
EXT FDC
PRINTER PORT
Parallel Port Extension 2FDD Connection Diagram
17.3 Four FDD Mode
W83977F DSA DSB MOA MOB
74LS139 G1 A1 B1 1Y0 1Y1 1Y2 1Y3 2Y0 2Y1 2Y2 2Y3
7407(2) DSA DSB DSC DSD MOA MOB MOC MOD
G2 A2 B2
- 113 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
18. ORDERING INSTRUCTION
PART NO. KBC FIRMWARE REMARKS
W83627SF-AW
AMIKEY-2
TM
19. HOW TO READ THE TOP MARKING
Example: The top marking of W83627SF-AW
SMART@IO
W83627SF-AW (c) AM. MEGA. 87-96 101A5BCSA
1st line: Winbond logo & SMART@IO 2nd line: the type number: W83627SF-AW 3rd line: the source of KBC F/W -- American Megatrends IncorporatedTM 4th line: the tracking code 1 01 A 5B C SA 1 01: packages made in 2001, week 01 A: assembly house ID; A means ASE, S means SPIL, G means GR, etc. 5B: Winbond internal use. C: IC revision; A means version A, C means version C SA: Winbond internal use.
-114-
W83627SF
20. PACKAGE DIMENSIONS
(128-pin QFP)
HE E
102 65
Symbol
Dimension in mm
Dimension in inch
Min
0.25 2.57 0.10 0.10 13.90 19.90
Nom
0.35 2.72 0.20 0.15 14.00 20.00 0.50
Max
0.45 2.87 0.30 0.20 14.10 20.10
Min
0.010 0.101 0.004 0.004 0.547 0.783
Nom
0.014 0.107 0.008 0.006 0.551 0.787 0.020
Max
0.018 0.113 0.012 0.008 0.555 0.791
103
64
D
HD
128
39
1
e
b
38
A1 A2 b c D E e HD HE L L1 y 0
c
17.00 23.00 0.65
17.20 23.20 0.80 1.60
17.40 23.40 0.95
0.669 0.905 0.025
0.677 0.913 0.031 0.063
0.685 0.921 0.037
0.08 0 7 0
0.003 7
Note:
1.Dimension D & E do not include interlead flash. 2.Dimension b does not include dambar protrusion/intrusion . 3.Controlling dimension : Millimeter 4.General appearance spec. should be based on final visual inspection spec.
A A2 See Detail F Seating Plane A1 L L1 Detail F
y
5. PCB layout please use the "mm".
- 115 -
Publication Release Date: May 31, 2005 Revision A1
W83627SF
21. REVISION HISTORY
VERSION DATE PAGE DESCRIPTION
0.50 0.60 0.61 A1
2000/09/17 2000/11/15 2001/04/27 May 31, 2005
n.a. All 114 116
First published New composition Update the Top Mark - SMART@IO ADD Important Notice
Important Notice
Winbond products are not designed, intended, authorized or warranted for use as components in systems or equipment intended for surgical implantation, atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, or for other applications intended to support or sustain life. Further more, Winbond products are not intended for applications wherein failure of Winbond products could result or lead to a situation wherein personal injury, death or severe property or environmental damage could occur. Winbond customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Winbond for any damages resulting from such improper use or sales.
Headquarters
No. 4, Creation Rd. III, Science-Based Industrial Park, Hsinchu, Taiwan TEL: 886-3-5770066 FAX: 886-3-5665577 http://www.winbond.com.tw/
Winbond Electronics Corporation America
2727 North First Street, San Jose, CA 95134, U.S.A. TEL: 1-408-9436666 FAX: 1-408-5441798
Winbond Electronics (Shanghai) Ltd.
27F, 2299 Yan An W. Rd. Shanghai, 200336 China TEL: 86-21-62365999 FAX: 86-21-62365998
Taipei Office
9F, No.480, Rueiguang Rd., Neihu District, Taipei, 114, Taiwan, R.O.C. TEL: 886-2-8177-7168 FAX: 886-2-8751-3579
Winbond Electronics Corporation Japan
7F Daini-ueno BLDG, 3-7-18 Shinyokohama Kohoku-ku, Yokohama, 222-0033 TEL: 81-45-4781881 FAX: 81-45-4781800
Winbond Electronics (H.K.) Ltd.
Unit 9-15, 22F, Millennium City, No. 378 Kwun Tong Rd., Kowloon, Hong Kong TEL: 852-27513100 FAX: 852-27552064
Please note that all data and specifications are subject to change without notice. All the trade marks of products and companies mentioned in this data sheet belong to their respective owners.
-116-


▲Up To Search▲   

 
Price & Availability of W83627SF

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X